vte.pty

Module for [Pty] class

Types 3

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
Pty self() nothrowReturns `this`, for use in `with` statements.
PtyGidBuilder builder() static nothrowGet builder for [vte.pty.Pty] Returns: New builder object
int fd() @property nothrowGet `fd` property. Returns: The file descriptor of the PTY master.
vte.types.PtyFlags flags() @property nothrowGet `flags` property. Returns: Flags.
vte.pty.Pty newForeignSync(int fd, gio.cancellable.Cancellable cancellable = null) staticCreates a new #VtePty for the PTY master fd.
vte.pty.Pty newSync(vte.types.PtyFlags flags, gio.cancellable.Cancellable cancellable = null) staticAllocates a new pseudo-terminal.
void childSetup() nothrow
void close() nothrowSince 0.42 this is a no-op.
int getFd() nothrow
bool getSize(out int rows, out int columns)Reads the pseudo terminal's window size.
bool setSize(int rows, int columns)Attempts to resize the pseudo terminal's window size. If successful, the OS kernel will send <literal>SIGWINCH</literal> to the child process group.
bool setUtf8(bool utf8)Tells the kernel whether the terminal is UTF-8 or not, in case it can make use of the info. Linux 2.6.5 or so defines IUTF8 to make the line discipline do multibyte backspace correctly.
void spawnAsync(string workingDirectory, string[] argv, string[] envv, glib.types.SpawnFlags spawnFlags, glib.types.SpawnChildSetupFunc childSetup, int timeout, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowLike [vte.pty.Pty.spawnWithFdsAsync], except that this function does not allow passing file descriptors to the child process. See [vte.pty.Pty.spawnWithFdsAsync] for more information.
void spawnWithFdsAsync(string workingDirectory, string[] argv, string[] envv, int[] fds, int[] mapFds, glib.types.SpawnFlags spawnFlags, glib.types.SpawnChildSetupFunc childSetup, int timeout, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null) nothrowStarts the specified command under the pseudo-terminal pty. The argv and envv lists should be null-terminated. The "TERM" environment variable is automatically set to a default value, but can be ov...
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for vte.pty.Pty

Methods
T fd(int propval) nothrowSet `fd` property. Params: propval = The file descriptor of the PTY master. Returns: Builder instance for fluent chaining
T flags(vte.types.PtyFlags propval) nothrowSet `flags` property. Params: propval = Flags. Returns: Builder instance for fluent chaining

Fluent builder for vte.pty.Pty

Methods
Pty build() nothrowCreate object from builder. Returns: New object