diff options
author | Hugues Hiegel <hugues@hiegel.fr> | 2008-08-13 16:03:43 +0200 |
---|---|---|
committer | Hugues Hiegel <hugues@hiegel.fr> | 2008-08-13 16:03:43 +0200 |
commit | 44eaa93460f73a6c72e6c75085d129ab055f97b2 (patch) | |
tree | 2d080a350927524b44c47fc7d7e197615f680771 /10_Environment.zsh | |
parent | 9ba0df7fa201845211ffec10021b250e8f255d37 (diff) |
First tests with termcaps for drawing borders into prompt
Diffstat (limited to '10_Environment.zsh')
-rw-r--r-- | 10_Environment.zsh | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/10_Environment.zsh b/10_Environment.zsh index 4d7adfe..970a6ce 100644 --- a/10_Environment.zsh +++ b/10_Environment.zsh @@ -34,6 +34,29 @@ _c=m C_="%{$c_" _C="$_c%}" +## Termcaps ########################### + +# Activates the alternate charset +echo $termcap[eA] + +typeset -A chars + +chars['-']="$termcap[as]q$termcap[ae]" +chars['|']="$termcap[as]x$termcap[ae]" + +chars[lr]="$termcap[as]j$termcap[ae]" +chars[ur]="$termcap[as]k$termcap[ae]" +chars[ul]="$termcap[as]l$termcap[ae]" +chars[ll]="$termcap[as]m$termcap[ae]" + +chars['+']="$termcap[as]n$termcap[ae]" + +chars[lT]="$termcap[as]t$termcap[ae]" +chars[rT]="$termcap[as]u$termcap[ae]" +chars[bT]="$termcap[as]v$termcap[ae]" +chars[tT]="$termcap[as]w$termcap[ae]" + + ## Variables d'environnement ``classiques'' # # L'utilisation de la forme ${VARIABLE:+$VARIABLE:} permet d'accoler ``:'' |