Discover Packages
github.com/canonical/workshop
internal
ptyutil
package
Version:
v0.9.4
Opens a new window with list of versions in this module.
Published: Jul 20, 2026
License: GPL-3.0
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Rendered for
linux/amd64
windows/amd64
darwin/amd64
js/wasm
GetSize returns the dimensions of the given terminal.
IsTerminal returns true if the given file descriptor is a terminal.
Restore restores the terminal connected to the given file descriptor to a previous state.
SetSize sets the dimensions of the terminal associated with fd.
State contains the state of a terminal.
GetState returns the current state of a terminal which may be useful to restore the terminal after a signal.
MakeRaw put the terminal connected to the given file descriptor into raw mode and returns the previous state of the terminal so that it can be restored.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.