Name

RunInTerminal — runs external program in the same terminal

Synopsis

RunInTerminal ( string external_program );
 

Parameters

string external_program

return integer

Description

Use this builtin if you want to run an external program from the NCcurses UI as a separate process. It saves the current window layout and runs the external program in the same terminal. When done, it restores the original window layout and returns the exit code of the external program. When called from the Qt UI, an error message is printed to the log.

Usage

  RunInTerminal("/bin/bash")