def style

bend-kit-tty@0.1.0.1 · tty.bend:20

import bend-kit-tty@0.1.0.1/tty.bend as Tty
import Base
import bend-kit-tty@0.1.0.1/text.bend as Text

20# Apply one numeric ANSI SGR code and reset it, or leave the text unchanged.
21def style(enabled: Bool, code: U32, text: String) -> String:
22  Text.style(enabled, code, text)

Uses (4)

Used by (1)