sys

package
v0.20.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 14, 2024 License: BSD-2-Clause Imports: 6 Imported by: 1

Documentation

Overview

Package sys provide system utilities with the same API across OSes.

The subpackages eunix and ewindows provide OS-specific utilities.

Index

Constants

View Source
const SIGWINCH = sigWINCH

SIGWINCH is the window size change signal.

Variables

This section is empty.

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 added in v0.17.0

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

Winsize queries the size of the terminal referenced by the given file.

Types

This section is empty.

Directories

Path Synopsis
Package eunix provides extra Unix-specific system utilities.
Package eunix provides extra Unix-specific system utilities.
Package ewindows provides extra Windows-specific system utilities.
Package ewindows provides extra Windows-specific system utilities.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL