Terminal.forkpty

Warning vte_terminal_forkpty has been deprecated since version 0.26 and should not be used in newly-written code. Use VtePty and fork() instead Starts a new child process under a newly-allocated controlling pseudo-terminal. TERM is automatically set to reflect the terminal widget's emulation setting. If lastlog, utmp, or wtmp are TRUE, logs the session to the specified system log files. Note that all file descriptors except stdin/stdout/stderr will be closed in the child. Note that envv and working_directory are silently ignored.

class Terminal
forkpty
(
string[] envv
,,,
int utmp
,
int wtmp
)

Parameters

envv string[]

a list of environment variables to be added to the environment before starting returning in the child process, or NULL

workingDirectory string

the name of a directory the child process should change to, or NULL

lastlog int

TRUE if the session should be logged to the lastlog

utmp int

TRUE if the session should be logged to the utmp/utmpx log

wtmp int

TRUE if the session should be logged to the wtmp/wtmpx log

Return Value

Type: pid_t

the ID of the new process in the parent, 0 in the child, and -1 if there was an error Since 0.11.11

Meta