Process unit
Unit implementing the
TProcess component.
The Process unit contains the code for the TProcess
component, a cross-platform component to start and control other programs,
offering also access to standard input and output for these programs.
TProcess does not handle wildcard expansion, does not support
complex pipelines as in Unix. If this behaviour is desired, the shell can be
executed with the pipeline as the command it should execute.
Classes and records
EProcess | class | Exception raised when an error occurs in a TProcess routine. |
TIODescriptor | class | |
TIOTypeHelper | helper | |
TProcess | class | Class to start and control other processes. |
TProcessHandleTypeHelper | helper | |
TProcessOptionHelper | helper | |
TProcessPriorityhelper | helper | |
TRunCommandEventCodeHelper | helper | |
TShowWindowOptionsHelper | helper | |
TStartupOptionHelper | helper |
Procedures and functions
CommandToList | procedure | Convert a command-line to a list of command options. |
DetectXTerm | function | Detect the terminal program. |
RunCommand | function | Execute a command in the current working directory. |
RunCommandIndir | function | Run a command in a specific directory. |
Types
TAfterAllocateHandleEvent | procedure type | |
TFileWriteMode | enumeration | |
TGetHandleEvent | procedure type | |
TIOType | enumeration | |
TOnRunCommandEvent | procedure type | Event to get feedback while a command is executing. |
TprocessChar | type | Character type used in the process. |
TProcessClass | type | Class of TProcess. |
TProcessForkEvent | procedure type | Prototype for TProcess.OnForkEvent event handler. |
TProcessHandleType | enumeration | |
TProcessOption | enumeration | Options to be used when a process is started. |
TProcessOptions | set | Set of TProcessOption. |
TProcessPriority | enumeration | type determining the priority of the newly started process. |
TProcessString | type | String type used in the process. |
TProcessStringList | type | Alias for TProcessStrings. |
TProcessStrings | type | Special-Purpose stringlist. |
TRunCommandEventCode | enumeration | Enumeration for the various stages in a process run cycle. |
TRunCommandEventCodeSet | set | Set of TRunCommandEventCode. |
TShowWindowOptions | enumeration | Description of the main window of the new process. |
TStartupOption | enumeration | Options determining how the application is started. |
TStartupOptions | set | Set of TStartUpOption. |
Resource strings
SErrCannotCreatePipes | resource string |
Variables
DefaultTProcess | variable | Default process class to use. |
SignalWaitTime | variable | |
TryTerminals | variable | A list of terminal programs to use (UNIX only). |
XTermProgram | variable | Default XTerm program to use. |
Uses
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
