yaic

yet another ii client
git clone git://git.ckyln.com/~cem/yaic.git
Log | Files | Refs | README | LICENSE

commit f4a54fd4abee402429ffb35595addbcd6414e1cd
parent 39de6d4d5013c50b3a1e3e53b6225e9fafd80631
Author: Cem Keylan <cem@ckyln.com>
Date:   Thu, 16 Apr 2020 18:30:09 +0300

yaic: use the prestty variable for restoration. Thanks @E5ten

Diffstat:
Myaic | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/yaic b/yaic @@ -196,8 +196,7 @@ main() { # Restore stty to what they were before. We do want this # to expand now, so the shellcheck error can be ignored. - # shellcheck disable=2064 - trap "stty '$(stty -g)'; printf '\033[m' ; kill -TERM 0" EXIT INT QUIT + trap 'stty $prestty; printf "\033[m" ; kill -TERM 0' EXIT INT QUIT stty -echonl printf '\033[m'