From 9e07e97b7fe4a38dba8332bc61ecc1179ceb60ec Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 29 Aug 2023 21:29:38 -0500 Subject: [PATCH] Update default.inc --- default.inc | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/default.inc b/default.inc index 911e9e4..5fe7a61 100755 --- a/default.inc +++ b/default.inc @@ -125,10 +125,11 @@ detect_os () { } ENTER2CONTINUE(){ - echo -en "\n[Press ENTER to continue]" - while read -s answer; do - [ -z "$answer" ] && break - done + read -sp "\n[Press ENTER to continue]" + echo -e "\e[1A\n\e[0K\r\n" +} +ANYKEY2CONTINUE(){ + read -n1 -sp "\n[Press any key to continue]" echo -e "\e[1A\n\e[0K\r\n" }