source: trunk/FACT++/src/Console.h@ 10305

Last change on this file since 10305 was 10305, checked in by tbretz, 14 years ago
Use ReadlineColor for unified look and feel.
File size: 874 bytes
Line 
1#ifndef FACT_Console
2#define FACT_Console
3
4#include "Readline.h"
5#include "WindowLog.h"
6
7class Console : public Readline
8{
9private:
10 WindowLog fLogO;
11 WindowLog fLogI;
12
13 bool fContinous;
14public:
15 Console(const char *name);
16 ~Console();
17
18 // Console
19 void SetContinous(bool cont) { fContinous = cont; }
20 bool IsContinous() const { return fContinous; }
21
22 // I/O
23 WindowLog &GetStreamOut() { return fLogO; }
24 WindowLog &GetStreamIn() { return fLogI; }
25
26 const WindowLog &GetStreamOut() const { return fLogO; }
27 const WindowLog &GetStreamIn() const { return fLogI; }
28
29 // Readline
30 bool PrintGeneralHelp();
31 bool PrintCommands();
32 bool PrintKeyBindings();
33
34 bool Process(const std::string &str);
35
36 std::string GetLinePrompt() const;
37
38 void Startup();
39 void EventHook();
40 void Run(const char * = 0);
41};
42
43#endif
Note: See TracBrowser for help on using the repository browser.