Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 31, 2010, 11:13:46 AM (14 years ago)
Author:
rgrieder
Message:

Split IOConsole in two separate files for better browsing.

File:
1 copied

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/command/IOConsolePOSIX.h

    r7265 r7287  
    3131#define _IOConsole_H__
    3232
    33 #include "CorePrereqs.h"
     33#include "core/CorePrereqs.h"
    3434
    3535#include <sstream>
     
    3939#include "Shell.h"
    4040
    41 #ifdef ORXONOX_PLATFORM_UNIX
    4241struct termios;
    43 #elif defined(ORXONOX_PLATFORM_WINDOWS)
    44 #define WIN32_LEAN_AND_MEAN
    45 #ifndef NOMINMAX
    46 #define NOMINMAX
    47 #endif
    48 #include <windows.h>
    49 #endif
    5042
    5143namespace orxonox
     
    7668        void exit();
    7769
     70        bool willPrintStatusLines();
     71        void printInputLine();
     72        void printOutputLine(const std::string& line, Shell::LineType type);
     73        static void resetTerminalMode();
     74
    7875        Shell*                  shell_;
    7976        InputBuffer*            buffer_;
     
    8683        const std::string       promptString_;
    8784
    88 #ifdef ORXONOX_PLATFORM_UNIX
    89         bool willPrintStatusLines();
    90         void printInputLine();
    91         void printOutputLine(const std::string& line, Shell::LineType type);
    92         static void resetTerminalMode();
    93 
    9485        bool                    bPrintStatusLine_;
    9586        bool                    bStatusPrinted_;
     
    9990        termios*                originalTerminalSettings_;
    10091
    101 #elif defined(ORXONOX_PLATFORM_WINDOWS)
    102         void resetTerminalMode();
    103         void moveCursor(int dx, int dy);
    104         void writeText(const std::string& text, const COORD& pos, WORD attributes = FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED);
    105         void createNewOutputLines(int lines);
    106         void printOutputLine(const std::string& line, Shell::LineType type, const COORD& pos);
    107 
    108         static inline COORD makeCOORD(int x, int y)
    109         {
    110             COORD val = {x, y};
    111             return val;
    112         }
    113 
    114         DWORD                   originalTerminalSettings_;
    115         HANDLE                  stdInHandle_;
    116         HANDLE                  stdOutHandle_;
    117         int                     inputLineRow_;
    118         int                     inputLineHeight_;
    119         const int               statusLines_;
    120         int                     lastOutputLineHeight_;
    121         uint64_t                lastRefreshTime_;
    122 #endif
    123 
    12492        static IOConsole* singletonPtr_s;
    12593    };
Note: See TracChangeset for help on using the changeset viewer.