core.terminal module¶
Handles terminal detection on Linux and terminal command lines.
-
class
core.terminal.
CustomTerminal
[source]¶ Bases:
core.terminal.LinuxTerminal
Allows custom terminal commands to handle missing cases.
-
static
get_command_line
()[source]¶ Returns a subprocess-compatible command to launch a command with this terminal. If the command to be launched should go somewhere other than the end of the command line, use $ to indicate the correct place.
-
name
= 'Custom command'¶
-
static
-
class
core.terminal.
GNOMETerminal
[source]¶ Bases:
core.terminal.LinuxTerminal
Handles terminals on GNOME and Cinnamon (e.g. gnome-terminal).
-
static
get_command_line
()[source]¶ Returns a subprocess-compatible command to launch a command with this terminal. If the command to be launched should go somewhere other than the end of the command line, use $ to indicate the correct place.
-
name
= 'GNOME/Cinnamon'¶
-
static
-
class
core.terminal.
KDETerminal
[source]¶ Bases:
core.terminal.LinuxTerminal
Handles terminals on KDE (e.g. Konsole).
-
static
get_command_line
()[source]¶ Returns a subprocess-compatible command to launch a command with this terminal. If the command to be launched should go somewhere other than the end of the command line, use $ to indicate the correct place.
-
name
= 'KDE'¶
-
static
-
class
core.terminal.
LXDETerminal
[source]¶ Bases:
core.terminal.LinuxTerminal
Handles terminals in LXDE.
-
static
get_command_line
()[source]¶ Returns a subprocess-compatible command to launch a command with this terminal. If the command to be launched should go somewhere other than the end of the command line, use $ to indicate the correct place.
-
name
= 'LXDE'¶
-
static
-
class
core.terminal.
LinuxTerminal
[source]¶ Bases:
object
Class for detecting and launching using a dedicated terminal on Linux.
-
static
get_command_line
()[source]¶ Returns a subprocess-compatible command to launch a command with this terminal. If the command to be launched should go somewhere other than the end of the command line, use $ to indicate the correct place.
-
name
= '????'¶
-
static
-
class
core.terminal.
MateTerminal
[source]¶ Bases:
core.terminal.LinuxTerminal
Handles the Mate desktop environment using mate-terminal.
-
static
get_command_line
()[source]¶ Returns a subprocess-compatible command to launch a command with this terminal. If the command to be launched should go somewhere other than the end of the command line, use $ to indicate the correct place.
-
name
= 'Mate'¶
-
static
-
class
core.terminal.
XfceTerminal
[source]¶ Bases:
core.terminal.LinuxTerminal
Handles terminals in the Xfce desktop environment.
-
static
get_command_line
()[source]¶ Returns a subprocess-compatible command to launch a command with this terminal. If the command to be launched should go somewhere other than the end of the command line, use $ to indicate the correct place.
-
name
= 'Xfce'¶
-
static
-
core.terminal.
configure_custom_terminal
(new_path)[source]¶ Configures the custom command used to launch a terminal on Linux.
-
core.terminal.
configure_terminal
(termname)[source]¶ Configures the terminal class used to launch a terminal on Linux.
-
core.terminal.
get_terminal_command
(cmd, force_custom=False)[source]¶ Returns a command to launch <cmd> in a new terminal. On Linux, if force_custom is set, the custom terminal command will be used.
-
class
core.terminal.
i3Terminal
[source]¶ Bases:
core.terminal.LinuxTerminal
Handles terminals in the i3 desktop environment.
-
static
get_command_line
()[source]¶ Returns a subprocess-compatible command to launch a command with this terminal. If the command to be launched should go somewhere other than the end of the command line, use $ to indicate the correct place.
-
name
= 'i3'¶
-
static
-
class
core.terminal.
rxvtTerminal
[source]¶ Bases:
core.terminal.LinuxTerminal
Handles rxvt and urxvt terminals. urxvt is used if both are available.
-
static
get_command_line
()[source]¶ Returns a subprocess-compatible command to launch a command with this terminal. If the command to be launched should go somewhere other than the end of the command line, use $ to indicate the correct place.
-
name
= '(u)rxvt'¶
-
static
-
core.terminal.
terminal_test_run
(status_callback=None)[source]¶ Starts and manages the test of terminal launching. Intermittent status messages may be received on function <status_callback>. Return value is (a, b), where a is a boolean marking the success of the test and b is a status text describing the result.
-
class
core.terminal.
xtermTerminal
[source]¶ Bases:
core.terminal.LinuxTerminal
Handles the xterm terminal.
-
static
get_command_line
()[source]¶ Returns a subprocess-compatible command to launch a command with this terminal. If the command to be launched should go somewhere other than the end of the command line, use $ to indicate the correct place.
-
name
= 'xterm'¶
-
static