Pty.newForeignSync

Creates a new #VtePty for the PTY master fd.

No entry will be made in the lastlog, utmp or wtmp system files.

Note that the newly created #VtePty will take ownership of fd and close it on finalize.

class Pty
static
newForeignSync

Parameters

fd int

a file descriptor to the PTY

cancellable gio.cancellable.Cancellable

a #GCancellable, or null

Return Value

Type: vte.pty.Pty

a new #VtePty for fd, or null on error with error filled in