terminal

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package terminal provides information about the state of the terminal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfTerminal

func CheckIfTerminal(w io.Writer) bool

func GetWinsize

func GetWinsize() (*unix.Winsize, error)

func IsTerminal

func IsTerminal(fd int) bool

Types

type Winsize

type Winsize struct {
	Row    uint16
	Col    uint16
	Xpixel uint16
	Ypixel uint16
}

Jump to

Keyboard shortcuts

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