tput

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 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 added in v0.0.7

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 added in v0.1.1

func ClearLine(w io.Writer)

func Cnorm

func Cnorm(w io.Writer)

Cnorm shows the cursor.

func Cuu added in v0.0.7

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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