smelt.terminal¶
Tier: UiHost - Requires a terminal UI; calling these from headless mode raises.
Visibility: Public - Stable Lua API intended for user config and plugins.
Terminal integration helpers. UiHost-only.
smelt.terminal.bell¶
Ring the terminal bell (BEL). Returns false when no interactive terminal is attached.
smelt.terminal.clear_title¶
Clear the terminal window/tab title using OSC 0 with an empty payload.
smelt.terminal.info¶
Return environment-derived terminal information: { term, term_program, color_term, platform, tmux, screen, ssh }.
smelt.terminal.is_focused¶
Return true when the smelt terminal window currently has OS focus.
smelt.terminal.osc9_notify¶
Post an OSC 9 terminal notification with message. Pass { dcs_passthrough = true } inside tmux to wrap the notification for tmux passthrough. Control characters are stripped from messages before writing.
smelt.terminal.set_title¶
Set the terminal window/tab title using OSC 0. Pass nil to clear it. Control characters are stripped from titles before writing.
smelt.terminal.size¶
Return the current terminal size as { width, height } in cells.