$TERM
–
Terminal Capabilities
$TERM
contains an identifier for the current window’s capabilities.
It’s not a BASH builtin variable, but is often defined in environments.
Links
Examples
- Print the terminal capabilities
- Output:
1
echo $TERM
1
xterm-256color
BashSupport Pro 是一个 支持 $TERM 的 Bash 集成开发工具 – 马上试用!