From dd4af7bb642e80a9bee532867cbfe5f7e0692d61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Georges=20Dup=C3=A9ron?= Date: Sat, 2 Oct 2010 01:32:46 +0200 Subject: [PATCH] =?UTF-8?q?Am=C3=A9lioration=20du=20menu=20d'aide.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- git-hist.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/git-hist.sh b/git-hist.sh index 85f1186..423de10 100755 --- a/git-hist.sh +++ b/git-hist.sh @@ -37,9 +37,11 @@ show() { } help() { + local garbage clear statusbar echo -e "status line : [version i / of total] : sha1" + echo "" echo -e "\e[1mh\e[m : help" echo -e "\e[1mp\e[m,\e[1m-\e[m : previous version" echo -e "\e[1mn\e[m,\e[1m+\e[m : next version" @@ -49,6 +51,9 @@ help() { echo -e "\e[1mu\e[m : scroll up" echo -e "\e[1mt\e[m : scroll to top" echo -e "\e[1mq\e[m : quit" + echo "" + echo "Press any key to hide this help." + read -n 1 garbage } fullpath="$(git ls-files --full-name "$file" | head -n 1)" @@ -71,7 +76,7 @@ while read -n 1 ab; do "d") page=$((page+1)) ;; "u") page=$((page-1)); [ "$i" -lt 0 ] && i=0 ;; "t") page=0 ;; - "h") help; continue ;; + "h") help ;; "q") break ;; esac show