Sign in Join
FPDoc Onlineexperiment

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

EProcessclassException raised when an error occurs in a TProcess routine.
TIODescriptorclass
TIOTypeHelperhelper
TProcessclassClass to start and control other processes.
TProcessHandleTypeHelperhelper
TProcessOptionHelperhelper
TProcessPriorityhelperhelper
TRunCommandEventCodeHelperhelper
TShowWindowOptionsHelperhelper
TStartupOptionHelperhelper

Procedures and functions

CommandToListprocedureConvert a command-line to a list of command options.
DetectXTermfunctionDetect the terminal program.
RunCommandfunctionExecute a command in the current working directory.
RunCommandIndirfunctionRun a command in a specific directory.

Types

TAfterAllocateHandleEventprocedure type
TFileWriteModeenumeration
TGetHandleEventprocedure type
TIOTypeenumeration
TOnRunCommandEventprocedure typeEvent to get feedback while a command is executing.
TprocessChartypeCharacter type used in the process.
TProcessClasstypeClass of TProcess.
TProcessForkEventprocedure typePrototype for TProcess.OnForkEvent event handler.
TProcessHandleTypeenumeration
TProcessOptionenumerationOptions to be used when a process is started.
TProcessOptionssetSet of TProcessOption.
TProcessPriorityenumerationtype determining the priority of the newly started process.
TProcessStringtypeString type used in the process.
TProcessStringListtypeAlias for TProcessStrings.
TProcessStringstypeSpecial-Purpose stringlist.
TRunCommandEventCodeenumerationEnumeration for the various stages in a process run cycle.
TRunCommandEventCodeSetsetSet of TRunCommandEventCode.
TShowWindowOptionsenumerationDescription of the main window of the new process.
TStartupOptionenumerationOptions determining how the application is started.
TStartupOptionssetSet of TStartUpOption.

Resource strings

SErrCannotCreatePipesresource string

Variables

DefaultTProcessvariableDefault process class to use.
SignalWaitTimevariable
TryTerminalsvariableA list of terminal programs to use (UNIX only).
XTermProgramvariableDefault XTerm program to use.

Uses

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.