portable_pty_bindings_generated library

Classes

PortablePty

Functions

portable_pty_child_pid(Pointer<PortablePty> handle) int
Get the child PID, or -1 if no child has been spawned.
portable_pty_close(Pointer<PortablePty> handle) → void
Close the PTY and free all resources.
portable_pty_get_mode(Pointer<PortablePty> handle, Pointer<Bool> out_canonical, Pointer<Bool> out_echo) PortablePtyResult
portable_pty_get_size(Pointer<PortablePty> handle, Pointer<Uint16> out_rows, Pointer<Uint16> out_cols, Pointer<Uint16> out_pixel_width, Pointer<Uint16> out_pixel_height) PortablePtyResult
portable_pty_kill(Pointer<PortablePty> handle, int _signal) PortablePtyResult
portable_pty_master_fd(Pointer<PortablePty> handle) int
Get the PTY master side file descriptor.
portable_pty_open(int rows, int cols, Pointer<Pointer<PortablePty>> out) PortablePtyResult
portable_pty_process_group_leader(Pointer<PortablePty> handle) int
Return the master process group ID (POSIX) or -1 when unsupported.
portable_pty_read(Pointer<PortablePty> handle, Pointer<Uint8> buf, int len) int
Read bytes from the PTY master side (child's stdout).
portable_pty_resize(Pointer<PortablePty> handle, int rows, int cols) PortablePtyResult
portable_pty_spawn(Pointer<PortablePty> handle, Pointer<Char> cmd, Pointer<Pointer<Char>> argv, Pointer<Pointer<Char>> envp) PortablePtyResult
portable_pty_wait(Pointer<PortablePty> handle, Pointer<Int> out_status) PortablePtyResult
portable_pty_wait_blocking(Pointer<PortablePty> handle, Pointer<Int> out_status) PortablePtyResult
portable_pty_write(Pointer<PortablePty> handle, Pointer<Uint8> buf, int len) int
Write bytes to the PTY master side (child's stdin).