From 933559d956bae70f9335bb16f8ea16736c5cbe81 Mon Sep 17 00:00:00 2001 From: hyb <76788424@qq.com> Date: Wed, 16 Feb 2022 20:08:44 +0800 Subject: [PATCH] add interactive login --- mshell.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mshell.sh b/mshell.sh index 657be23..5f9ccfe 100755 --- a/mshell.sh +++ b/mshell.sh @@ -398,7 +398,7 @@ function react() { scroll=$(($index - $terminal_rows + 2)) test $scroll -gt 0 && { start_index=$(($scroll + 2)) - end_index=$(($index + 1)) + end_index=$line } } sed -ne $line's/^/\'$'\033[7m&/;'$line's/$/&\'$'\033[27m/;'"${start_index},${end_index}p" $session_cache_file