vte.pty
Module for [Pty] class
Types 3
Methods
PtyGidBuilder builder()Get builder for [vte.pty.Pty] Returns: New builder objectvte.pty.Pty newForeignSync(int fd, gio.cancellable.Cancellable cancellable = null)Creates a new #VtePty for the PTY master fd.vte.pty.Pty newSync(vte.types.PtyFlags flags, gio.cancellable.Cancellable cancellable = null)Allocates a new pseudo-terminal.void childSetup()void close()Since 0.42 this is a no-op.int getFd()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)Like [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.bool spawnFinish(gio.async_result.AsyncResult result, out glib.types.Pid childPid)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)Starts 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...classPtyGidBuilderImpl(T) : gobject.object.ObjectWrapGidBuilderImpl!T, gio.initable.InitableGidBuilderImpl!T
Methods
T fd(int propval)Set `fd` property. Params: propval = The file descriptor of the PTY master. Returns: Builder instance for fluent chainingT flags(vte.types.PtyFlags propval)Set `flags` property. Params: propval = Flags. Returns: Builder instance for fluent chaining