Cli.tty_columns: def of cli@0.2.0.0 Import: import cli@0.2.0.0/cli.bend as Cli Lines 7821-7827 of cli@0.2.0.0/cli.bend: https://jend.leeeet.dev/read.txt?path=cli@0.2.0.0/cli.bend&start_line=7821&end_line=7827 import Base # stdout's columns if it is a TTY, else stderr's if it is one, else 0. def tty_columns(out_tty: Bool, err_tty: Bool, out_cols: U32, err_cols: U32) -> Nat: match out_tty err_tty: case True{} _: U32.to_nat(out_cols) case False{} True{}: U32.to_nat(err_cols) case False{} False{}: 0n Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.to_nat