[Overview][Types][Classes][Procedures and functions][Variables][Index] |
Detect the terminal program.
Source position: process.pp line 173
function DetectXTerm: string; |
The terminal program to use, or empty if none was found.
DetectXTerm checks if XTermProgram is set. if so, it returns that. If XTermProgram is empty, the list specified in TryTerminals is tested for existence. If none is found, then the DESKTOP_SESSION environment variable is examined:
If after all this, no terminal is found, then a list of default programs is tested: 'x-terminal-emulator','xterm','aterm','wterm','rxvt'.
If a terminal program is found, then it is saved in XTermProgram, so the next call to DetectXTerm will re-use the value. If the search must be performed again, it is sufficient to set XTermProgram to the empty string.
|
Default XTerm program to use |
|
|
A list of terminal programs to use (unix only) |
|
|
XTerm program to use (unix only) |