3 # AX-ZSH: Alex' Modular ZSH Configuration
4 # Copyright (c) 2015-2017 Alexander Barton <alex@barton.de>
7 source "$AXZSH/core/11_terminal/11_terminal.zshrc" || exit 1
11 while [[ $# -gt 0 ]]; do
17 echo "Usage: ttyinfo [-v]" >&2
23 print -Pn -- "$fg[white]$FX[bold]$(hostname)$FX[no-bold] "
24 print -Pn -- "$fg[yellow]$(tty)$FX[reset], "
25 print -Pn -- "$fg[green]$FX[underline]${TERM:-?}$FX[reset] "
26 print -Pn -- "(${COLUMNS:-?}x${LINES:-?}); "
27 print -Pn -- "$fg[white]LANG=${LANG:-?}$FX[reset]"
30 [[ -z "$VERBOSE" ]] && return 0
32 check_function_result() {
34 print -Pn -- " - $fg[white]$1$FX[reset]() = "
35 if [[ $r -eq 0 ]]; then
36 print -P -- "$fg[green]yes$FX[reset]"
38 print -P -- "$fg[red]NO$FX[reset]"
45 axzsh_is_dumb_terminal
46 axzsh_is_modern_terminal
48 axzsh_is_widechar_terminal
50 check_function_result "$f"