Documentation ¶
Index ¶
- Variables
- func DeviceMajor[T constraints.Integer](rdev T) uint64
- func DeviceMinor[T constraints.Integer](rdev T) uint64
- func ParseDims(b []byte) (uint32, uint32)
- func ParseKeyValue(b []byte) (key, value string)
- func ParseValue(b []byte) (value string)
- func SetWinSz(fd uintptr, w, h uint32) (err error)
- type TermType
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUnsupportedOS = errors.New("unsupported operating system")
)
Functions ¶
func DeviceMajor ¶ added in v0.5.19
func DeviceMajor[T constraints.Integer](rdev T) uint64
func DeviceMinor ¶ added in v0.5.19
func DeviceMinor[T constraints.Integer](rdev T) uint64
func ParseKeyValue ¶
func ParseValue ¶
Types ¶
type TermType ¶ added in v0.5.19
type TermType uint8
func CharDeviceInfo ¶ added in v0.5.19
CharDeviceInfo uses syscall.Stat to test if the path exists, is a character device (mode has S_IFCHR), parses the major and minor numbers out of syscall.Stat_t.Rdev and finally determines the TermType value based on the major and minor values
func ParseDeviceInfo ¶ added in v0.5.19
func ParseDeviceInfo[T constraints.Integer](dev T) (major, minor uint64, ttyType TermType)
func ResolveTTY ¶ added in v0.5.19
Click to show internal directories.
Click to hide internal directories.