mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 05:07:00 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user