term

package
v0.0.0-...-07c3fde Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ANSIPalette = color.Palette{}/* 256 elements not displayed */

Functions

func CaptureStdin

func CaptureStdin(onRune func(rune)) error

Types

type ANSI

type ANSI struct {
	Display io.Writer
}

func (*ANSI) Background

func (a *ANSI) Background(c color.Color) (int, error)

func (*ANSI) BackgroundReset

func (a *ANSI) BackgroundReset() (int, error)
func (a *ANSI) Blink() (int, error)

func (*ANSI) BlinkOff

func (a *ANSI) BlinkOff() (int, error)

func (*ANSI) Bold

func (a *ANSI) Bold() (int, error)

func (*ANSI) Clear

func (a *ANSI) Clear() (int, error)

func (*ANSI) CursorPosition

func (a *ANSI) CursorPosition(row, column int) (int, error)

func (*ANSI) Foreground

func (a *ANSI) Foreground(c color.Color) (int, error)

func (*ANSI) ForegroundReset

func (a *ANSI) ForegroundReset() (int, error)

func (*ANSI) HideCursor

func (a *ANSI) HideCursor() (int, error)

func (*ANSI) Normal

func (a *ANSI) Normal() (int, error)

func (*ANSI) Reset

func (a *ANSI) Reset() (int, error)

func (*ANSI) ResizeWindow

func (a *ANSI) ResizeWindow(rows, cols int) (int, error)

func (*ANSI) ShowCursor

func (a *ANSI) ShowCursor() (int, error)

type WinSize

type WinSize struct {
	Rows   int
	Cols   int
	Width  int
	Height int
}

func GetWinSize

func GetWinSize() (WinSize, error)

Jump to

Keyboard shortcuts

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