Răsfoiți Sursa

Added default input "y" when opening console

Now you just have to press ENTER.

Note that this requires v4 of bash.
Marvin Lehmann 11 ani în urmă
părinte
comite
da7f3d0b34
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      functions/fn_console

+ 2 - 2
functions/fn_console

@@ -17,7 +17,7 @@ echo "Press \"CTRL+b d\" to exit console."
 fn_printwarningnl "Do NOT press CTRL+c to exit."
 echo ""
 while true; do
-	read -p "Continue? [y/N]" yn
+	read -e -i "y" -p "Continue? [y/N]" yn
 	case $yn in
 	[Yy]* ) break;;
 	[Nn]* ) echo Exiting; return 1;;
@@ -45,4 +45,4 @@ else
 		* ) echo "Please answer yes or no.";;
 	esac
 	done
-fi
+fi