Added raw mode to simplify the interface with other programs

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1056 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-04 22:17:45 +00:00
parent 574644b3eb
commit d666034e7f
4 changed files with 63 additions and 12 deletions
+8
View File
@@ -41,11 +41,19 @@ class TextIOHandler {
/// Show a warning message
void showWarning(const String& message);
/// Enable raw mode
void enableRaw();
/// Output a single raw-mode record
/// Has no effect unless enableRaw() was called
void flushRaw();
private:
bool have_console;
bool escapes;
FILE* stream;
String buffer; ///< Buffer when not writing to console
bool raw_mode;
int raw_mode_status;
};
/// The global TextIOHandler object