Module

poke/terminal

src/poke/terminal.pooka

Keep the frame steady when a line contains an owl, an accent or a long path. Terminal controls in snapshot text are made visible before rendering; they remain unchanged in the actual snapshot. Clipping never splits a grapheme.

API reference

function

columns

src/poke/terminal.pooka:22
columns() -> Int
INFERREDfn() -> Int
function

fit

src/poke/terminal.pooka:26
fit(text: String, width: Int) -> String
INFERREDfn(String, Int) -> String
function

cells

src/poke/terminal.pooka:30
cells(text: String) -> Int
INFERREDfn(String) -> Int
function

safe

src/poke/terminal.pooka:34
safe(text: String) -> String
INFERREDfn(String) -> String
function

clip

src/poke/terminal.pooka:39
clip(text: String, width: Int) -> String
INFERREDfn(String, Int) -> String

Clip only when necessary, preserving the text's own trailing whitespace.

function

wrap

src/poke/terminal.pooka:48
wrap(text: String, width: Int) -> List(String)
INFERREDfn(String, Int) -> List(String)

Wrap without losing text or splitting a grapheme. Width is measured in display cells; a wide character remains whole at a continuation boundary.