Skip to content

smelt.prompt_bar.bottom

Availability: Terminal UI only; raises in headless mode.

The rule below the prompt, empty by default. Register named sources with smelt.prompt_bar.bottom.add(name, handler). add returns a Reg that removes the source. UiHost-only.

smelt.prompt_bar.bottom.add

fun(name: string, handler: fun(): smelt.bar.Item[]?): smelt.Reg

Types: smelt.bar.Item, smelt.Reg

Add a named source of items to the rule of the bar below the prompt. It has no built-in sources, so the rule stays plain until a plugin adds one. Same contract as smelt.prompt_bar.top.add.

smelt.prompt_bar.bottom.invalidate

fun()

Repaint after plugin-owned state changes that are not represented by a built-in signal. Adding, replacing, and removing sources invalidates automatically.

smelt.prompt_bar.bottom.remove

fun(name: string)

Remove every source named name from the bar below the prompt.