View Source Termite.Screen (Termite v0.3.0)
This module handles terminal related escape sequences. See the source for valid escape sequences.
Summary
Functions
Switch to alt screen.
Clears the screen.
Move the cursor back by n cells.
Move the cursor down by n lines.
Move the cursor forward by n cells.
Move the cursor down by n lines and place cursor at the beginning of the line.
Set the cursor position to x,y.
Move the cursor up by n lines and place cursor at the beginning of the line.
Move the cursor up by n lines.
Delete the specified number of characters from the cursor.
Return the escape code for the terminal.
Return an escape sequence.
Exit to alt screen.
Hide the cursor.
Write an escape sequence to the terminal.
Show the cursor.
Functions
Switch to alt screen.
Clears the screen.
Move the cursor back by n cells.
Move the cursor down by n lines.
Move the cursor forward by n cells.
Move the cursor down by n lines and place cursor at the beginning of the line.
Set the cursor position to x,y.
Move the cursor up by n lines and place cursor at the beginning of the line.
Move the cursor up by n lines.
Delete the specified number of characters from the cursor.
Return the escape code for the terminal.
iex> Termite.Screen.escape_code()
"["
Return an escape sequence.
iex> Termite.Screen.escape_sequence(:cursor_back, [3])
"[3D"
Exit to alt screen.
Hide the cursor.
Write an escape sequence to the terminal.
Show the cursor.