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
+2 -1
View File
@@ -65,11 +65,11 @@ void CLISetInterface::onChangeSet() {
void CLISetInterface::run() {
// show welcome logo
if (!quiet) showWelcome();
handle_pending_errors();
// loop
running = true;
while (running) {
if (!cli.canGetLine()) break;
handle_pending_errors();
// show prompt
if (!quiet) {
cli << GRAY << _("> ") << NORMAL;
@@ -79,6 +79,7 @@ void CLISetInterface::run() {
String command = cli.getLine();
handleCommand(command);
cli.flush();
cli.flushRaw();
}
}