src.elv.shsrc.elv.sh/pkg/sys Index | Files | Directories

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

const SIGWINCH = sigWINCH

SIGWINCH is the window size change signal.

Functions

func DumpStack

func DumpStack() string

func IsATTY

func IsATTY(fd uintptr) bool

IsATTY determines whether the given file is a terminal.

func NotifySignals

func NotifySignals() chan os.Signal

NotifySignals returns a channel on which all signals gets delivered.

func WinSize

func WinSize(file *os.File) (row, col int)

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

PathSynopsis
pkg/sys/eunixPackage 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.