termutil

package
v3.1.5 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: BSD-3-Clause Imports: 7 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoTerminate added in v3.1.0

func AutoTerminate(enable bool)

AutoTerminate enables or disables automatic terminate signal catching. It's needed to restore the terminal state after the pool was used. By default, it's enabled.

func RawModeOff

func RawModeOff() (err error)

RawModeOff restore previous terminal state

func RawModeOn

func RawModeOn() (quit chan struct{}, err error)

RawModeOn switches terminal to raw mode

func TerminalSize added in v3.1.0

func TerminalSize() (rows, cols int, err error)

TerminalSize returns size of the terminal.

func TerminalWidth

func TerminalWidth() (int, error)

TerminalWidth returns width of the terminal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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