package sys
import "src.elv.sh/pkg/sys"
Package sys provide system utilities with the same API across OSes.
The subpackages eunix and ewindows provide OS-specific utilities.
Index ¶
- Constants
- func DumpStack() string
- func IsATTY(fd uintptr) bool
- func NotifySignals() chan os.Signal
- func WinSize(file *os.File) (row, col int)
Constants ¶
const SIGWINCH = sigWINCH
SIGWINCH is the window size change signal.
Functions ¶
func DumpStack ¶
func DumpStack() string
func IsATTY ¶
IsATTY determines whether the given file is a terminal.
func NotifySignals ¶
NotifySignals returns a channel on which all signals gets delivered.
func WinSize ¶
Winsize queries the size of the terminal referenced by the given file.
Source Files ¶
dumpstack.go signal_unix.go sys.go winsize_unix.go
Directories ¶
Path | Synopsis |
---|---|
pkg/sys/eunix | Package eunix provides extra Unix-specific system utilities. |
- Version
- v0.21.0 (latest)
- Published
- Aug 13, 2024
- Platform
- linux/amd64
- Imports
- 6 packages
- Last checked
- 1 day ago –
Tools for package owners.