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 printf "$fg[white]$fx[bold]$(hostname)$fx[no-bold] "
24 printf "$fg[yellow]$(tty)$fx[reset], "
25 printf "$fg[green]$fx[underline]${TERM:-?}$fx[reset] "
26 printf "(${COLUMNS:-?}x${LINES:-?}); "
27 printf "$fg[white]LANG=${LANG:-?}$fx[reset]"
30 [[ -z "$VERBOSE" ]] && return 0
32 check_function_result() {
34 printf " - $fg[white]$1$fx[reset]() = "
35 if [[ $r -eq 0 ]]; then
36 echo "$fg[green]yes$fx[reset]"
38 echo "$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"