View Source Termite.Screen (Termite v0.2.0)

This module handles terminal related escape sequences. See the source for valid escape sequences.

Summary

Functions

Return the escape code for the terminal.

Return an escape sequence.

Write an escape sequence to the terminal.

Functions

Return the escape code for the terminal.

iex> Termite.Screen.escape_code()
"["
Link to this function

escape_sequence(command, args \\ [])

View Source

Return an escape sequence.

iex> Termite.Screen.escape_sequence(:cursor_back, [3])
""
Link to this function

run_escape_sequence(term, command, args \\ [])

View Source

Write an escape sequence to the terminal.

See Termite.Terminal.write/2.