From 5aa29ab3c79be328574a34bd3aef33fc382609f9 Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Wed, 25 Feb 2015 23:50:55 -0600 Subject: GUI: Terminal command: minor improvements * Use mono font for terminal command input * Recognize 'exit' command (go to main page) Change-Id: I5f383cd8d19959a49d2ae0b18f839b86e4145693 --- gui/action.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gui/action.cpp') diff --git a/gui/action.cpp b/gui/action.cpp index f9de4e9d8..16a550ba1 100644 --- a/gui/action.cpp +++ b/gui/action.cpp @@ -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()); -- cgit v1.2.3