X-Git-Url: https://git.madduck.net/etc/zsh.git/blobdiff_plain/06a9e572b889f7fd555ccd5bc5bf5d079f576f59..dbdc7eafae07bf7a5830402200e1d5fe9188a622:/.zsh/zshrc/70_termfonts?ds=inline diff --git a/.zsh/zshrc/70_termfonts b/.zsh/zshrc/70_termfonts index d55f056..8fe04f6 100644 --- a/.zsh/zshrc/70_termfonts +++ b/.zsh/zshrc/70_termfonts @@ -14,7 +14,7 @@ _XTERM_FONTS+='-misc-fixed-medium-r-normal-*-13-120-75-75-c-80-iso10646-1' _XTERM_FONTS+='-misc-fixed-medium-*-*-*-15-*-*-*-*-*-iso10646-1' _XTERM_FONTS+='-misc-fixed-medium-r-normal-*-18-*-*-*-*-*-iso10646-1' _XTERM_FONTS+='-misc-fixed-medium-r-normal-*-20-200-75-75-c-100-iso10646-1' -integer -g _XTERM_FONT +_XTERM_FONT=${_XTERM_FONT:=1} _set_xterm_font() { if [ $1 -lt 1 ]; then @@ -30,9 +30,11 @@ _set_xterm_font() { info "selecting font: $_XTERM_FONTS[$_XTERM_FONT]" echo -en "\033]50;$_XTERM_FONTS[$1]\007" } -_set_xterm_font ${_XTERM_FONT:-1} +#_set_xterm_font $_XTERM_FONT 2>/dev/null f++() { _set_xterm_font $((_XTERM_FONT + 1)) } f--() { _set_xterm_font $((_XTERM_FONT - 1)) } f0() { _set_xterm_font 1 } fx() { _set_xterm_font $#_XTERM_FONTS } + +# vim:ft=zsh