struct Tty {
/* private fields */
}| Name | Description |
|---|---|
| new_pty | Creates a new pseudo terminal. |
| Receiver | Name | Description |
|---|---|---|
&self | acquire | Acquire this terminal as the controlling terminal. |
&self | attributes | Retrieves the attributes of the terminal. |
&self | device | Returns the device associated with this terminal. |
&self | disable_packet_mode | Disables packet mode for this terminal. |
&self | disable_slave | Disallows opening the slave. |
&self | discard_input | Discards all unread input of this terminal. |
&self | discard_output | Discards all unwritten output of this terminal. |
&self | enable_packet_mode | Enabled packet mode for this terminal. |
&self | enable_slave | Allows opening the slave. |
&self | exclusive | Returns whether exclusive mode is enabled. |
&self | foreground_group | Returns the foreground process group of this terminal. |
&self | give_up | Gives up this controlling terminal. |
&self | hang_up | Simulates a hang-up of this terminal. |
&self | line_discipline | Returns the line discipline of this terminal. |
&self | packet_mode | Returns whether packet mode is enabled. |
&self | pending_input | Returns the number of pending input bytes. |
&self | pending_output | Returns the number of pending output bytes. |
&self | pty_id | Returns the id of this pseudo terminal. |
&self | push_byte | Adds a single byte to the input queue of the terminal. |
&self | redirect_console | Redirects |
&self | session | Returns the session of this terminal. |
&self | set_attributes | Sets the attributes of the terminal. |
&self | set_exclusive | Enables or disables exclusive mode for this terminal. |
&self | set_foreground_group | Sets the foreground process group of this terminal. |
&self | set_line_discipline | Sets the line discipline of this terminal. |
&self | set_window_size | Sets the size of the terminal window. |
&self | signal | Sends a signal to the process group at the other end of a pseudo terminal. |
&self | slave_enabled | Returns whether the slave can be opened. |
&self | start_input | Restarts input. |
&self | start_output | Restarts output. |
&self | suspend_input | Suspends input. |
&self | suspend_output | Suspends output. |
&self | window_size | Returns the size of the terminal window. |
| Name | Description |
|---|---|
| FDContainer | Objects that are file descriptor wrappers. |