Pty.newForeignSync

vte.pty.Pty newForeignSync(int fd, gio.cancellable.Cancellable cancellable = null)

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.

Parameters

fda file descriptor to the PTY
cancellablea #GCancellable, or null

Returns

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

Throws

[ErrorWrap]