Changeset 7287 for code/trunk/src/libraries/core/command/IOConsolePOSIX.h
- Timestamp:
- Aug 31, 2010, 11:13:46 AM (15 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/libraries/core/command/IOConsolePOSIX.h
r7265 r7287 31 31 #define _IOConsole_H__ 32 32 33 #include " CorePrereqs.h"33 #include "core/CorePrereqs.h" 34 34 35 35 #include <sstream> … … 39 39 #include "Shell.h" 40 40 41 #ifdef ORXONOX_PLATFORM_UNIX42 41 struct termios; 43 #elif defined(ORXONOX_PLATFORM_WINDOWS)44 #define WIN32_LEAN_AND_MEAN45 #ifndef NOMINMAX46 #define NOMINMAX47 #endif48 #include <windows.h>49 #endif50 42 51 43 namespace orxonox … … 76 68 void exit(); 77 69 70 bool willPrintStatusLines(); 71 void printInputLine(); 72 void printOutputLine(const std::string& line, Shell::LineType type); 73 static void resetTerminalMode(); 74 78 75 Shell* shell_; 79 76 InputBuffer* buffer_; … … 86 83 const std::string promptString_; 87 84 88 #ifdef ORXONOX_PLATFORM_UNIX89 bool willPrintStatusLines();90 void printInputLine();91 void printOutputLine(const std::string& line, Shell::LineType type);92 static void resetTerminalMode();93 94 85 bool bPrintStatusLine_; 95 86 bool bStatusPrinted_; … … 99 90 termios* originalTerminalSettings_; 100 91 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 #endif123 124 92 static IOConsole* singletonPtr_s; 125 93 };
Note: See TracChangeset
for help on using the changeset viewer.