Stateful terminal layout engine.
Controllers append transcript bytes and mutate fat-prompt state; this module owns the cursor geometry needed to clear/repaint the volatile footer around those appends. Scrollback bytes are append-only once emitted.
Types
TerminalEngine = object
- Rows from the current cursor row to the top of the last painted volatile footer. Zero means no footer geometry is currently known.
Procs
proc finishEditorRedraw(e: var TerminalEngine; ed: var minline.LineEditor; showCaret = true) {....raises: [IOError], tags: [ReadEnvEffect, WriteIOEffect], forbids: [].}
proc finishEditorRedraw(ed: var minline.LineEditor; showCaret = true) {. ...raises: [IOError], tags: [ReadEnvEffect, WriteIOEffect], forbids: [].}
proc syncWrite(bytes: string) {....gcsafe, raises: [IOError], tags: [WriteIOEffect], forbids: [].}
proc syncWrite(e: var TerminalEngine; bytes: string) {....raises: [IOError], tags: [WriteIOEffect], forbids: [].}
- Synchronized screen write for legacy frame helpers that have not yet been decomposed into footer model mutations.
proc updateToolViewportSymbol(symbol: string) {....gcsafe, raises: [], tags: [], forbids: [].}
- Rewrite the leading glyph of the cached command banner row. The bar-tick thread calls this each tick to rotate the currency marker ($/€/£/¥); the next renderFooter repaint writes the updated row in one locked pass.
proc writeRaw(bytes: string) {....gcsafe, raises: [IOError], tags: [WriteIOEffect], forbids: [].}
proc writeRaw(e: var TerminalEngine; bytes: string) {....raises: [IOError], tags: [WriteIOEffect], forbids: [].}
- Raw screen write owned by the engine boundary.