def paint_with
import cswap-bend-cli@0.1.0.0/tui/fmt.bend as Fmtimport 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)
import cswap-bend-cli@0.1.0.0/tui/fmt.bend as Fmtimport 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)