www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit dd4af7bb642e80a9bee532867cbfe5f7e0692d61
parent 725a2758037ef7d82f8198cc9909139379e8a86c
Author: Georges Dupéron <jahvascriptmaniac+github@free.fr>
Date:   Sat,  2 Oct 2010 01:32:46 +0200

Amélioration du menu d'aide.

Diffstat:
Mgit-hist.sh | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 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