Skip to main content

Display modes

The TUI adapts to the terminal: glyphs follow the locale (a UTF locale in LC_ALL, LC_CTYPE or LANG enables Unicode, anything else falls back to ASCII) and colour honours NO_COLOR and TERM=dumb. Force either on the Tui facade with ->unicode(TRUE|FALSE) and ->color(TRUE|FALSE). Here is the same produce-box form in each combination:

ANSINo ANSI
UnicodeProduce box: Unicode + ANSIProduce box: Unicode + ANSIProduce box: Unicode + No ANSIProduce box: Unicode + No ANSI
ASCIIProduce box: ASCII + ANSIProduce box: ASCII + ANSIProduce box: ASCII + No ANSIProduce box: ASCII + No ANSI

The forcing seams and the environment conventions each have a runnable script in playground/11-display-modes/.