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" }