Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

utils_execute Class Reference

A static-only class for commonly used functions of the wxWindows wxExecute/wxShell. More...

#include <utils_execute.h>

List of all members.


Static Public Methods

bool  launch_xterm_shell (const wxString &command, const wxString &shell_console_title=wxEmptyString, bool close_on_exit=FALSE, bool synchronous=FALSE, bool show_scrollbar=TRUE, long saved_line_history=10000)
  Executes a command in a new xterm window, optionally setting the window behaviour.


Detailed Description

A static-only class for commonly used functions of the wxWindows wxExecute/wxShell.

Member Function Documentation

bool utils_execute::launch_xterm_shell const wxString &    command,
const wxString &    shell_console_title = wxEmptyString,
bool    close_on_exit = FALSE,
bool    synchronous = FALSE,
bool    show_scrollbar = TRUE,
long    saved_line_history = 10000
[static]
 

Executes a command in a new xterm window, optionally setting the window behaviour.

wxShell(command) on WXGTK I don't feel works as advertised (won't open an interactive window--it runs in the background). But calling xterm ourselves gives us more control anyways.

Parameters:
command  Required. A command string to be executed in xterm
shell_console_title  Title at top of window. If empty, then will use the name of the command's executable as the title.
close_on_exit  Whether to close the xterm window when the commandline application terminates.
synchrous  TRUE to make it a synchronous execution, that is, your application doesn't need for xterm to finish before it continues with its program flow.
show_scrollbar  TRUE to show a scrollbar on the side of the window (right left mouse clicks on the scrollbar scroll it, as do shift+page up/down).
saved_line_history  Number of lines to keep in memory that user can scroll backwards to.
Returns :
TRUE if the execution of xterm was successful.