JLine terminal wrapper for charm.clj
JLine terminal wrapper for charm.clj
(clear-screen terminal)Clear the terminal screen.
Clear the terminal screen.
(clear-to-end-of-line terminal)Clear from cursor to end of line.
Clear from cursor to end of line.
(clear-to-end-of-screen terminal)Clear from cursor to end of screen.
Clear from cursor to end of screen.
(close terminal)Close the terminal and release resources.
Close the terminal and release resources.
(create-terminal)Create a JLine terminal with system I/O and FFM as native interface.
Create a JLine terminal with system I/O and FFM as native interface.
(cursor-down terminal n)Move cursor down n lines.
Move cursor down n lines.
(cursor-home terminal)Move cursor to home position (0,0).
Move cursor to home position (0,0).
(cursor-up terminal n)Move cursor up n lines.
Move cursor up n lines.
(enter-alt-screen terminal)Enter alternate screen buffer.
Enter alternate screen buffer.
(enter-raw-mode terminal)Put terminal in raw mode for character-by-character input. Returns the previous Attributes for restoration.
Put terminal in raw mode for character-by-character input. Returns the previous Attributes for restoration.
(exit-alt-screen terminal)Exit alternate screen buffer.
Exit alternate screen buffer.
(flush-output terminal)Flush the terminal output.
Flush the terminal output.
(get-attributes terminal)Get the terminal's current attributes. Use this to save terminal state before modifications.
Get the terminal's current attributes. Use this to save terminal state before modifications.
(get-reader terminal)Get the terminal's non-blocking reader.
Get the terminal's non-blocking reader.
(get-size terminal)Get terminal dimensions as {:width cols :height rows}.
Get terminal dimensions as {:width cols :height rows}.
(get-writer terminal)Get the terminal's print writer.
Get the terminal's print writer.
(hide-cursor terminal)Hide the terminal cursor.
Hide the terminal cursor.
(move-cursor terminal col row)Move cursor to position (0-indexed).
Move cursor to position (0-indexed).
(set-attributes terminal attrs)Set the terminal's attributes. Use this to restore saved terminal state.
Set the terminal's attributes. Use this to restore saved terminal state.
(show-cursor terminal)Show the terminal cursor.
Show the terminal cursor.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |