terminal

get info about terminal


Parameters

terminal 

Returns

  • :dictionary

Examples

copy
print terminal ; [width:107 height:34 tty?:true colors:16777216 unicode?:true] terminal\width ; => 107 terminal\tty? ; => true (false, if output is piped/redirected) terminal\colors ; => 256 (0, if colors are off)

copy
prompt: (terminal\unicode?)? -> "❯ " -> "> "

Related