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/IOConsoleWindows.h

    r7265 r7287  
    2121 *
    2222 *   Author:
    23  *      Oliver Scheuss
    2423 *      Reto Grieder
    2524 *   Co-authors:
     
    3130#define _IOConsole_H__
    3231
    33 #include "CorePrereqs.h"
     32#include "core/CorePrereqs.h"
    3433
    3534#include <sstream>
     
    3938#include "Shell.h"
    4039
    41 #ifdef ORXONOX_PLATFORM_UNIX
    42 struct termios;
    43 #elif defined(ORXONOX_PLATFORM_WINDOWS)
    4440#define WIN32_LEAN_AND_MEAN
    4541#ifndef NOMINMAX
     
    4743#endif
    4844#include <windows.h>
    49 #endif
    5045
    5146namespace orxonox
     
    7671        void exit();
    7772
    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_UNIX
    89         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)
    10273        void resetTerminalMode();
    10374        void moveCursor(int dx, int dy);
     
    11283        }
    11384
     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
    11495        DWORD                   originalTerminalSettings_;
    11596        HANDLE                  stdInHandle_;
     
    120101        int                     lastOutputLineHeight_;
    121102        uint64_t                lastRefreshTime_;
    122 #endif
    123103
    124104        static IOConsole* singletonPtr_s;
Note: See TracChangeset for help on using the changeset viewer.