vt100

package
v0.0.0-...-5c775dd Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClearEOLSeq   = "\033[0K"
	HideCursorSeq = "\033[?25l"
	ShowCursorSeq = "\033[?25h"
)

Variables

This section is empty.

Functions

func SetEcho

func SetEcho(stdin *os.File, flag bool) (oldState *unix.Termios, err error)

func TermIOSSet

func TermIOSSet(stdin *os.File, state *unix.Termios) error

Types

type Console

type Console struct {
	Out *bufio.Writer
}

func (*Console) ClearEOL

func (con *Console) ClearEOL() *Console

func (*Console) CursorUp

func (con *Console) CursorUp(n int) *Console

func (*Console) Flush

func (con *Console) Flush() *Console

func (*Console) Fprint

func (con *Console) Fprint(f string, args ...any) *Console

func (*Console) HideCursor

func (con *Console) HideCursor() *Console

func (*Console) LineFeed

func (con *Console) LineFeed() *Console

func (*Console) ShowCursor

func (con *Console) ShowCursor() *Console

func (*Console) Write

func (con *Console) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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