util

package
v0.0.0-...-e0ee0a9 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisableEcho

func DisableEcho(fd int) (*unix.Termios, error)

Disable TTY echo of stdin.

func EchoSigHandler

func EchoSigHandler(
	ctx context.Context,
	sigChan chan os.Signal,
	errChan chan error,
	term *unix.Termios)

Signal handler to re-enable tty echo on interrupt. The signal handler is transparent with system default, and immedeately releases the channel and calling the system sighandler after termios is set.

Types

This section is empty.

Jump to

Keyboard shortcuts

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