def paint_with

cswap-bend-cli@0.1.0.0 · tui/fmt.bend:219

import cswap-bend-cli@0.1.0.0/tui/fmt.bend as Fmt
import Base

219def paint_with(+color: Bool, +t: String, +c: String) -> String:
220  sel.s(color && Bool.not(String.is_empty(c)), "\u{1B}[" ++ c ++ "m" ++ t ++ "\u{1B}[0m", t)

Uses (7)

Used by (1)