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_elite2_setup | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'Functions/Prompts/prompt_elite2_setup') diff --git a/Functions/Prompts/prompt_elite2_setup b/Functions/Prompts/prompt_elite2_setup index 41080187b..0c1500a16 100644 --- a/Functions/Prompts/prompt_elite2_setup +++ b/Functions/Prompts/prompt_elite2_setup @@ -11,8 +11,9 @@ This prompt is color-scheme-able. You can invoke it thus: The default colors are both cyan. 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 stupid. +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 } @@ -20,9 +21,9 @@ prompt_elite2_setup () { local text_col=${1:-'cyan'} local parens_col=${2:-$text_col} - for code in 332 304 300; 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 local text="%{$fg_no_bold[$text_col]%}" local parens="%{$fg_bold[$parens_col]%}" -- cgit 1.4.1