From 5dcc03c2e4dac79b6451acec8c11f6b1cdd0765d Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Mon, 25 Aug 2008 11:25:24 +0200 Subject: Preprint with termcaps --- 01_Functions.zsh | 6 ++++-- 1 file 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 () -- cgit v1.2.3