mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2025-01-24 05:55:19 +00:00
tty
This commit is contained in:
parent
733c5ef5bb
commit
b8b242a1c3
@ -544,8 +544,8 @@ main_menu() {
|
|||||||
echo -e "${YELLOW}2. 选择特定测试脚本${NC}"
|
echo -e "${YELLOW}2. 选择特定测试脚本${NC}"
|
||||||
echo -e "${YELLOW}0. 退出${NC}"
|
echo -e "${YELLOW}0. 退出${NC}"
|
||||||
|
|
||||||
# 提示输入并读取
|
# 提示输入并读取,从终端读取输入
|
||||||
read -p "请选择操作 [0-2]: " choice
|
read -p "请选择操作 [0-2]: " choice < /dev/tty
|
||||||
|
|
||||||
# 确保输入非空
|
# 确保输入非空
|
||||||
if [[ -z "$choice" ]]; then
|
if [[ -z "$choice" ]]; then
|
||||||
@ -578,6 +578,7 @@ main_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# 输出欢迎信息
|
# 输出欢迎信息
|
||||||
show_welcome() {
|
show_welcome() {
|
||||||
echo ""
|
echo ""
|
||||||
|
Loading…
Reference in New Issue
Block a user