Documentation ¶
Overview ¶
Package pty provides functions for working with Unix terminals.
SPDX-License-Identifier: MIT
Index ¶
- func Getsize(t *os.File) (rows, cols uint16, err error)
- func IsForeground(f *os.File) bool
- func IsTerminal(f *os.File) bool
- func Open() (pty, tty *os.File, err error)
- func Ptsname(f *os.File) (string, error)
- func Resizer(parent, child *os.File)
- func Restore(f *os.File, state *State) error
- func Setsize(f *os.File, rows, cols uint16) error
- func Unlockpt(f *os.File) error
- type State
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Getsize ¶
Getsize returns the number of rows (lines) and cols (positions in each line) in terminal t.
func IsForeground ¶
func IsTerminal ¶
IsTerminal returns true if the given file descriptor is a terminal.
Types ¶
Click to show internal directories.
Click to hide internal directories.