tput

package
v0.0.0-...-04856c9 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package tput provides convenience functions for sending escape sequences to the terminal. The escape codes used have been derrived from the tput program.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BufScreen

func BufScreen(w io.Writer, n int)

BufScreen ensures that there are enough lines available by sending n * newlines to the writer.

func Civis

func Civis(w io.Writer)

Civis hides the cursor.

func ClearLine

func ClearLine(w io.Writer)

func Cnorm

func Cnorm(w io.Writer)

Cnorm shows the cursor.

func Cuu

func Cuu(w io.Writer, n int)

Cuu moves the cursor up by n lines.

func Rc

func Rc(w io.Writer)

Rc restores the cursor to the saved position.

func Sc

func Sc(w io.Writer)

Sc saves the current position of the cursor.

func Tty

func Tty() bool

func TtySize

func TtySize() (int, int)

func Write

func Write(w io.Writer, s string)

func Writef

func Writef(w io.Writer, format string, a ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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