From: martin f. krafft Date: Mon, 5 May 2008 14:28:02 +0000 (+0100) Subject: properly initialise fonts on first load X-Git-Url: https://git.madduck.net/etc/zsh.git/commitdiff_plain/e882a36fb10f1e94e4eec3faeda563a0fb48ca9f?ds=sidebyside properly initialise fonts on first load --- diff --git a/.zsh/zshrc/70_termfonts b/.zsh/zshrc/70_termfonts index d55f056..916b5a5 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,7 +30,7 @@ _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)) }