Struct

IdePtyIntercept

Description

struct IdePtyIntercept {
  gsize magic;
  IdePtyInterceptSide consumer;
  IdePtyInterceptSide producer;
}
No description available.
Structure members
magic
No description available.
consumer
No description available.
producer
No description available.

Functions

ide_pty_intercept_create_consumer

Creates a new PTY consumer using posix_openpt(). Some fallbacks are provided for non-Linux systems where O_CLOEXEC and O_NONBLOCK may not be supported.

ide_pty_intercept_create_producer

This creates a new producer to the PTY consumer consumer_fd.

Instance methods

ide_pty_intercept_clear

Cleans up a IdePtyIntercept previously initialized with ide_pty_intercept_init().

ide_pty_intercept_get_fd

Gets a consumer PTY fd created by the IdePtyIntercept. This is suitable to use to create a producer fd which can be passed to a child process.

ide_pty_intercept_init

Creates a enw IdePtyIntercept using the PTY consumer fd fd.

ide_pty_intercept_set_callback

This sets the callback to execute every time data is received from a particular side of the intercept.

ide_pty_intercept_set_size

Proxies a winsize across to the inferior. If the PTY is the controlling PTY for the process, then SIGWINCH will be signaled in the inferior process.