From 88301c1c7389fc81683fbdd5168f8db82e46e66b Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 14 Jun 2007 16:10:50 +0000 Subject: users/11568: use UTF-8 characters in some prompt themes --- Functions/Prompts/prompt_fade_setup | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'Functions/Prompts/prompt_fade_setup') diff --git a/Functions/Prompts/prompt_fade_setup b/Functions/Prompts/prompt_fade_setup index ab908e41e..10b27f164 100644 --- a/Functions/Prompts/prompt_fade_setup +++ b/Functions/Prompts/prompt_fade_setup @@ -14,8 +14,8 @@ working directory, user@host text, and date text respectively. The default colors are green, white, and white. This theme works best with a dark background. -Recommended fonts for this theme: nexus or vga or similar. If you -don't have any of these, the 8-bit characters will probably look +Recommended fonts for this theme: either UTF-8, or nexus or vga or similar. +If you don't have any of these, the 8-bit characters will probably look stupid. EOH } @@ -27,9 +27,9 @@ prompt_fade_setup () { local userhost=${2:-'white'} local date=${3:-'white'} - for code in 333 262 261 260; do - local char_$code=$(echo -n "\\0$code") - done + local char_333 char_262 char_261 char_260 + autoload -U prompt_special_chars + prompt_special_chars PS1="%{$fg[$fadebar_cwd]$bg[$fadebar_cwd]$bold_color%}$char_333$char_262$char_261$char_260%{$fg[$userhost]$bg[$fadebar_cwd]$bold_color%}%n@%m%{$reset_color$fg[$fadebar_cwd]$bg[grey]%}$char_333$char_262$char_261$char_260%{$fg[$date]$bg[grey]$bold_color%} %D{%a %b %d} %D{%I:%M:%S%P} $prompt_newline%{$fg[$fadebar_cwd]$bg[grey]$bold_color%}%~/%{$reset_color%} " PS2="%{$fg[$fadebar_cwd]$bg[grey]%}$char_333$char_262$char_261$char_260%{$reset_color%}>" -- cgit v1.2.3