Terminal renderer using JLine's Display for efficient diffing.
Provides a high-level rendering API that efficiently updates the terminal by only redrawing changed content.
Terminal renderer using JLine's Display for efficient diffing. Provides a high-level rendering API that efficiently updates the terminal by only redrawing changed content.
(copy-to-clipboard! renderer text)Copy text to system clipboard (if terminal supports OSC 52).
Copy text to system clipboard (if terminal supports OSC 52).
(create-renderer terminal
&
{:keys [fps alt-screen hide-cursor]
:or {fps 60 alt-screen false hide-cursor true}})Create a renderer for a terminal.
Options: :fps - Target frames per second (default: 60) :alt-screen - Use alternate screen buffer (default: false) :hide-cursor - Hide cursor during rendering (default: true)
Create a renderer for a terminal. Options: :fps - Target frames per second (default: 60) :alt-screen - Use alternate screen buffer (default: false) :hide-cursor - Hide cursor during rendering (default: true)
(disable-bracketed-paste! renderer)Disable bracketed paste mode.
Disable bracketed paste mode.
(disable-focus-reporting! renderer)Disable focus reporting.
Disable focus reporting.
(disable-mouse! renderer)Disable mouse tracking.
Disable mouse tracking.
(enable-bracketed-paste! renderer)Enable bracketed paste mode.
Enable bracketed paste mode.
(enable-focus-reporting! renderer)Enable focus in/out reporting.
Enable focus in/out reporting.
(enable-mouse! renderer mode)Enable mouse tracking.
Mode can be: :normal - Button events only :cell - Button and movement while pressed :all - All mouse events including motion
Enable mouse tracking. Mode can be: :normal - Button events only :cell - Button and movement while pressed :all - All mouse events including motion
(enter-alt-screen! renderer)Enter the alternate screen buffer.
Enter the alternate screen buffer.
(exit-alt-screen! renderer)Exit the alternate screen buffer.
Exit the alternate screen buffer.
(get-size renderer)Get the current terminal size [width height].
Get the current terminal size [width height].
(hide-cursor! renderer)Hide the terminal cursor.
Hide the terminal cursor.
(move-cursor! renderer col row)Move cursor to position (0-indexed).
Move cursor to position (0-indexed).
(render! renderer content)Render content to the terminal using JLine's Display for efficient diffing.
Content can be a string (multi-line) which will be split and rendered line by line.
Render content to the terminal using JLine's Display for efficient diffing. Content can be a string (multi-line) which will be split and rendered line by line.
(repaint! renderer)Force a full repaint on next render.
Force a full repaint on next render.
(set-window-title! renderer title)Set the terminal window title.
Set the terminal window title.
(show-cursor! renderer)Show the terminal cursor.
Show the terminal cursor.
(stop! renderer)Stop the renderer and restore terminal state.
Stop the renderer and restore terminal state.
(update-size! renderer width height)Update the renderer's size (call on window resize).
Update the renderer's size (call on window resize).
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 |