fixed handle inheritance and closing in win32 cli wrapper

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@1057 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2008-08-04 23:44:14 +00:00
parent d666034e7f
commit eeabd66c84
3 changed files with 27 additions and 22 deletions
+1 -1
View File
@@ -69,7 +69,6 @@ void CLISetInterface::run() {
// loop
running = true;
while (running) {
if (!cli.canGetLine()) break;
// show prompt
if (!quiet) {
cli << GRAY << _("> ") << NORMAL;
@@ -77,6 +76,7 @@ void CLISetInterface::run() {
}
// read line from stdin
String command = cli.getLine();
if (command.empty() && !cli.canGetLine()) break;
handleCommand(command);
cli.flush();
cli.flushRaw();