diff options
author | Dylan Araps <dylan.araps@gmail.com> | 2018-10-24 00:05:44 +1100 |
---|---|---|
committer | Dylan Araps <dylan.araps@gmail.com> | 2018-10-24 00:05:44 +1100 |
commit | 6e2c29b686a0fc718a86a6625f25d6070933255e (patch) | |
tree | 336c98e6f587f67958a2182b95fcb7b843075550 | |
parent | 04223f40995d36d57748c2c2f5df0cd61dd91bc6 (diff) |
cleanup
-rwxr-xr-x | fff | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -105,7 +105,6 @@ key() { B|j) ((l=l==c-1?l:++l,j!=c&&l==j-m/2+1))&&((k=k>=j?k:++k,j=j<c?++j:j)) ;; A|k) ((l=l<1?l:--l,k>0&&l==k+m/2-2))&&((k=k<=j?k>0?--k:0:j,j=j>0?--j:j)) esac - f_print } main() { @@ -116,7 +115,7 @@ main() { trap "refresh; printf '\\e[m\\e[?25h\\e[?7h'" EXIT trap 'refresh; f_print' SIGWINCH - for ((;;)); { read -rsn 1; key "$REPLY"; } + for ((;;)); { read -rsn 1; key "$REPLY"; f_print; } } main "$@" |