Changeset 7287 for code/trunk/src/libraries/core/command/IOConsoleWindows.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/IOConsoleWindows.h
r7265 r7287 21 21 * 22 22 * Author: 23 * Oliver Scheuss24 23 * Reto Grieder 25 24 * Co-authors: … … 31 30 #define _IOConsole_H__ 32 31 33 #include " CorePrereqs.h"32 #include "core/CorePrereqs.h" 34 33 35 34 #include <sstream> … … 39 38 #include "Shell.h" 40 39 41 #ifdef ORXONOX_PLATFORM_UNIX42 struct termios;43 #elif defined(ORXONOX_PLATFORM_WINDOWS)44 40 #define WIN32_LEAN_AND_MEAN 45 41 #ifndef NOMINMAX … … 47 43 #endif 48 44 #include <windows.h> 49 #endif50 45 51 46 namespace orxonox … … 76 71 void exit(); 77 72 78 Shell* shell_;79 InputBuffer* buffer_;80 std::ostream cout_;81 std::ostringstream origCout_;82 int terminalWidth_;83 int terminalHeight_;84 int lastTerminalWidth_;85 int lastTerminalHeight_;86 const std::string promptString_;87 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 bool bPrintStatusLine_;95 bool bStatusPrinted_;96 std::vector<int> statusLineWidths_;97 int statusLineMaxWidth_;98 static const int minOutputLines_ = 3;99 termios* originalTerminalSettings_;100 101 #elif defined(ORXONOX_PLATFORM_WINDOWS)102 73 void resetTerminalMode(); 103 74 void moveCursor(int dx, int dy); … … 112 83 } 113 84 85 Shell* shell_; 86 InputBuffer* buffer_; 87 std::ostream cout_; 88 std::ostringstream origCout_; 89 int terminalWidth_; 90 int terminalHeight_; 91 int lastTerminalWidth_; 92 int lastTerminalHeight_; 93 const std::string promptString_; 94 114 95 DWORD originalTerminalSettings_; 115 96 HANDLE stdInHandle_; … … 120 101 int lastOutputLineHeight_; 121 102 uint64_t lastRefreshTime_; 122 #endif123 103 124 104 static IOConsole* singletonPtr_s;
Note: See TracChangeset
for help on using the changeset viewer.