diff options
author | Nalin Dahyabhai <nalin@src.gnome.org> | 2002-09-05 05:42:13 +0000 |
---|---|---|
committer | Nalin Dahyabhai <nalin@src.gnome.org> | 2002-09-05 05:42:13 +0000 |
commit | 5d694faf7d2c3fb490ffc135f3ffc4ab3130b19c (patch) | |
tree | 9c1441cea134b9d2611ab3e5b9e049ccbb792b47 /src/pty.c | |
parent | 590ba538b7fa77509035453bc8a0e4d6f276bfc1 (diff) |
2002-09-05 nalin first pass at writing documentation fix
2002-09-05 nalin
* docs/reference: first pass at writing documentation
* src/termcap.c: fix how'd-that-ever-work in vte_termcap_strip(), patch
from Brian Cameron. Take \\e as an alias for \\E, which is already
an alias for Escape.
* src/vte.c(vte_terminal_get_cursor): Return an absolute cursor position
instead of a relative position.
Diffstat (limited to 'src/pty.c')
-rw-r--r-- | src/pty.c | 36 |
1 files changed, 36 insertions, 0 deletions
@@ -152,6 +152,17 @@ vte_pty_fork_on_pty(const char *path, char **env_add, _exit(0); } +/** + * vte_pty_set_size: + * @master: the file descriptor of the pty master + * @columns: the desired number of columns + * @rows: the desired number of rows + * + * Attempts to resize the pseudo terminal's window size. If successful, the + * OS kernel will send #SIGWINCH to the child process group. + * + * Returns: 0 on success, -1 on failure. + */ int vte_pty_set_size(int master, int columns, int rows) { @@ -178,6 +189,16 @@ vte_pty_set_size(int master, int columns, int rows) return ret; } +/** + * vte_pty_get_size: + * @master: the file descriptor of the pty master + * @columns: a place to store the number of columns + * @rows: a place to store the number of rows + * + * Attempts to read the pseudo terminal's window size. + * + * Returns: 0 on success, -1 on failure. + */ int vte_pty_get_size(int master, int *columns, int *rows) { @@ -330,6 +351,21 @@ vte_pty_open_old_school(pid_t *child, char **env_add, return -1; } +/** + * vte_pty_open: + * @child: location to store the new process's ID + * @env_add: a list of environment variables to add to the child's environment + * @command: name of the binary to run + * @argv: arguments to pass to @command + * @columns: desired window columns + * @rows: desired window 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. + * + * Returns: an open file descriptor for the pty master, -1 on failure + */ int vte_pty_open(pid_t *child, char **env_add, const char *command, char **argv, |