Avoid using pause if Terminal is detected

This commit is contained in:
WindowsAddict 2024-08-18 05:08:35 +05:30
parent fb113c7c24
commit d55b9fa78c
2 changed files with 26 additions and 4 deletions

View file

@ -829,10 +829,14 @@ echo:
) else (
echo:
call :dk_color %_Yellow% "A Window will popup, in that Window you need to select [Quick] Repair Option..."
if defined terminal (
call :dk_color %_Yellow% "Press 0 key to continue..."
choice /c 0 /n
) else (
call :dk_color %_Yellow% "Press any key to continue..."
echo:
pause %nul1%
)
)
if defined uwp16 (
echo:
@ -1042,8 +1046,13 @@ exit /b
echo:
echo %line%
echo:
call :dk_color %_Yellow% "Press any key to go back..."
if defined terminal (
call :dk_color %_Yellow% "Press 0 key to %_exitmsg%..."
choice /c 0 /n
) else (
call :dk_color %_Yellow% "Press any key to %_exitmsg%..."
pause %nul1%
)
goto :at_menu
::========================================================================================================================================