summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-08-25 11:25:24 +0200
committerHugues Hiegel <hugues@hiegel.fr>2008-08-25 11:25:24 +0200
commit5dcc03c2e4dac79b6451acec8c11f6b1cdd0765d (patch)
tree26e25f52ae8851a9b6d49d7507fe3d9404080573
parentd7b33432c1d2cc325bf800078978dc19cb8373ba (diff)
Preprint with termcapstermcaps
-rw-r--r--01_Functions.zsh6
1 files changed, 4 insertions, 2 deletions
diff --git a/01_Functions.zsh b/01_Functions.zsh
index 11124de..fb13fe4 100644
--- a/01_Functions.zsh
+++ b/01_Functions.zsh
@@ -50,9 +50,11 @@ preprint()
hbar=
for i in {1..$(($COLUMNS - ${#1} - 5))}
do
- hbar=$hbar-
+ hbar=${hbar}q
done
- print -Pn "${C_}$my_color${_C}${hbar}[ $1 ]-\r${C_}0${_C}"
+ hbar=$termcap[as]$hbar$termcap[ae]
+
+ print -Pn "${C_}$my_color${_C}${hbar}$termcap[as]u$termcap[ae] $1 $termcap[as]tq$termcap[ae]\r${C_}0${_C}"
}
get_git_branch ()