Des menus dans votre terminal - retour accueil
git clone git://bebou.netlib.re/zenu
Log | Files | Refs |
commit f4a2fea170d6aa256e8db46154cbd9ec2a3783dd parent 70b7c1d66f96ddc6954d17cd67908e1adcb62ddb Auterice: mc <mc@unistra.fr> Date: Tue, 9 May 2023 20:02:20 +0200 ctrl-_ instead of _ as acceleration declarator Diffstat:
M | bin/build | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/bin/build b/bin/build @@ -17,7 +17,7 @@ shift case "$cmd" in (-h|help|--help) usage -;; (face | -f) sed -rn '/^##/q;s/_(.)/\x1b[7m\1\x1b[m/;s/^/ /p' "$@" +;; (face | -f) sed -rn '/^##/q;s/\x1f(.)/\x1b[7m\1\x1b[m/;s/^/ /p' "$@" # Avoid Quoting hell (QH) with aliases: # with QH ;; (script | -s) <<-% cat @@ -42,7 +42,7 @@ in (-h|help|--help) usage # } # echo $functions[_zenu_action_builder] ;; (emph| -e) - sed -rn '/^##/q;s/(.*)_((.).*)/\3 \1\2 /;p' "$@" | awk ' + sed -rn '/^##/q;s/(.*)\x1f((.).*)/\3 \1\2 /;p' "$@" | awk ' {line[i++]=$0} (l=length)>m {m=l} END { for (i=0; i<until ; ++i) printf "%-*s\n", m, line[i] }