[][src]Module phetch::terminal

The terminal module mostly provides terminal escape sequences for things like clearing the screen or going into alternate mode, as well as raw mode borrowed from crossterm.

Structs

ClearAfterCursor

Clear everything after the cursor.

ClearAll

Clear the entire screen.

ClearCurrentLine

Clear the current line.

ClearUntilNewline

Clear from cursor to newline.

Goto

Goto some position ((1,1)-based).

HideCursor

Hide the cursor.

ShowCursor

Show the cursor.

ToAlternateScreen

Switch to the alternate screen buffer of the terminal.

ToMainScreen

Switch to the main screen buffer of the terminal.

Functions

disable_raw_mode

Back it up.

enable_raw_mode

Go into "raw" mode, courtesy of crossterm.

is_raw_mode_enabled

Are we in raw mode?