Skip to main content

Module tui

Module tui 

Source
Expand description

Ratatui screener TUI (tvscreener-tui binary).

Structs§

AppModel
Pane model: config, last rows, status line, active view.
BuilderUi
Builder pane UI state (not sent to the API until refresh).
ScanConfig
CLI / env scan parameters for the TUI.
TerminalGuard
Restores the terminal on drop (normal exit, ?, or unwind after panic hook).

Enums§

BuilderFocus
Builder row focus for j / k navigation.
InputMode
Text input sub-mode inside the builder pane.
ViewMode
Which pane the TUI is showing.

Constants§

DEFAULT_WATCH_INTERVAL_SECS
Default auto-refresh interval when watch mode is on (seconds).
FILTER_OPS
Operators offered in the simple filter wizard.
MIN_TUI_REFRESH_SECS
Minimum gap between TUI scans (manual r or watch).

Statics§

STOP
Set by SIGINT/SIGTERM so the loop can restore the tty before exit.

Functions§

build_payload
Builds the scanner POST JSON for the current config (no network).
configure_screener
Configures a screener from TUI scan parameters.
copy_via_osc52
Copies text to the terminal clipboard via OSC 52.
draw
Draws the TUI chrome and active pane.
hard_reset_tty
Reset SGR, cursor, and clear both alt and main tty buffers.
inside_gnu_screen
GNU screen sets STY. Its default config often ignores the xterm alt buffer.
install_panic_hook
Restores the tty on panic before the default panic hook runs.
install_signal_handlers
Installs Ctrl-C / SIGTERM handler that sets STOP.
is_quit_key
Returns true for quit keys (q, Esc, Ctrl-C).
payload_pretty
Pretty JSON for the payload pane.
render_codegen
Rust + CLI snippets for the codegen pane.