优化交互打印

This commit is contained in:
Super Manito
2025-03-17 01:01:49 +08:00
parent 1e0f9337df
commit 19eb9ef4e7
2 changed files with 8 additions and 4 deletions

View File

@@ -2559,7 +2559,8 @@ function interactive_select_mirror() {
tput rc
tput cnorm
tput rmcup
exit
echo -e "\n${TIP} ${RED}操作已取消${PLAIN}\n"
exit 130
}
function draw_menu() {
tput clear
@@ -2649,7 +2650,8 @@ function interactive_select_boolean() {
function cleanup() {
clear_menu
tput cnorm
exit
echo -e "\n${TIP} ${RED}操作已取消${PLAIN}\n"
exit 130
}
function draw_menu() {
# 绘制菜单不改变光标位置

View File

@@ -1111,7 +1111,8 @@ function interactive_select_mirror() {
tput rc
tput cnorm
tput rmcup
exit
echo -e "\n${TIP} ${RED}操作已取消${PLAIN}\n"
exit 130
}
function draw_menu() {
tput clear
@@ -1201,7 +1202,8 @@ function interactive_select_boolean() {
function cleanup() {
clear_menu
tput cnorm
exit
echo -e "\n${TIP} ${RED}操作已取消${PLAIN}\n"
exit 130
}
function draw_menu() {
# 绘制菜单不改变光标位置