pty
Name
pty -- Functions for starting a new process on a new pseudo-terminal and for
manipulating psuedo-terminals.
Description
The terminal widget uses these functions to start commands with new controlling
pseudo-terminals and to resize psuedo-terminals.
Details
vte_pty_open ()
int vte_pty_open (pid_t *child,
char **env_add,
const char *command,
char **argv,
int columns,
int rows); |
Starts a new copy of command running under a psuedo-terminal, with window
size set to rows x columns and variables in env_add added to its
environment. A convenience wrapper for vte_pty_open_with_logging().
vte_pty_get_size ()
int vte_pty_get_size (int master,
int *columns,
int *rows); |
Attempts to read the pseudo terminal's window size.
vte_pty_set_size ()
int vte_pty_set_size (int master,
int columns,
int rows); |
Attempts to resize the pseudo terminal's window size. If successful, the
OS kernel will send SIGWINCH to the child process group.