Skip to main content

screen

Index

Variables

constclear

clear: string = ansiEscapes.clearScreen

Clear the terminal screen.

clearTerminal

clearTerminal: string

consterase

erase: string = ansiEscapes.eraseScreen

Erase the screen and move the cursor the top left position.

eraseDown

eraseDown: string

eraseEndLine

eraseEndLine: string

eraseLine

eraseLine: string

eraseStartLine

eraseStartLine: string

eraseUp

eraseUp: string

scrollDown

scrollDown: string

scrollUp

scrollUp: string

Functions

eraseLines

  • eraseLines(count: number): string
  • Erase from the current cursor position up the specified amount of rows.

size

  • size(): TerminalSize
  • Reliably and accurately get the screen size (in columns and rows).