termutil

package
v3.0.9 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoTerminate

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

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