GUI: Terminal command: minor improvements

* Use mono font for terminal command input
* Recognize 'exit' command (go to main page)

Change-Id: I5f383cd8d19959a49d2ae0b18f839b86e4145693
This commit is contained in:
Matt Mower
2015-03-05 04:20:53 +01:00
committed by Dees Troy
parent 829315385f
commit 5aa29ab3c7
4 changed files with 7 additions and 0 deletions
+4
View File
@@ -1321,6 +1321,10 @@ int GUIAction::terminalcommand(std::string arg)
if (simulate) {
simulate_progress_bar();
operation_end(op_status);
} else if (arg == "exit") {
LOGINFO("Exiting terminal\n");
operation_end(op_status);
page("main");
} else {
command = "cd \"" + cmdpath + "\" && " + arg + " 2>&1";;
LOGINFO("Actual command is: '%s'\n", command.c_str());