tui.output
tui.output PANE [TEXT...]
some_command | tui.output PANE
Replaces the pane’s content with text, or with stdin when no TEXT is given.
Parameters
TEXT...: joined with spaces, then split on newlines. ANSI escapes are kept.
Notes
- The repaint is queued and coalesced with other changes in the same frame.
PANEmust be a valid bash identifier (letters, digits,_): the content is stored in a variable named after it.- Reading stdin (
cmd | tui.output) costs a pipeline fork; for text updated in a loop usetui.set_text. - Don’t mix
tui.outputandtui.set_texton the same pane:tui.set_textskips text it thinks is already shown.
Example
tui.output log "line one"
tui.output log "$(ls -la)"
df -h | tui.output disk
See also: tui.output_append, tui.pane_scroll
