Files
laragon/bin/cmder/vendor/conemu-maximus5/ConEmu/SetProgress.cmd
2025-10-05 17:33:37 +02:00

64 lines
1.2 KiB
Batchfile
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
@echo off
rem Usage:
rem SetProgress
rem -- Several sample calls delimited with "pause"
rem SetProgress 0
rem -- Remove progress state
rem SetProgress 1 <Percents>
rem -- Set progress to specified value (0..100)
rem SetProgress 2
rem -- Set progress error state
rem SetProgress 3
rem -- Set progress indeterminate state
rem SetProgress 4
rem -- Set progress paused state
rem Run this file in cmd.exe or tcc.exe to change
rem Title of console window.
rem Note!
rem "Inject ConEmuHk" and "ANSI X3.64" options
rem must be turned ON in ConEmu Settings!
rem set ESC=
call "%~dp0SetEscChar.cmd"
if not "%~1"=="" goto set_pr
rem Without parameters - run demo
echo %ESC%[s
echo %ESC%[s
echo %ESC%[u%ESC%[KPress enter to set 30%% progress...
pause>nul
call :set_pr 1 30
echo %ESC%[u%ESC%[KPress enter to set 60%% progress
pause>nul
call :set_pr 1 60
echo %ESC%[u%ESC%[KPress enter to set Error state
pause>nul
call :set_pr 2
echo %ESC%[u%ESC%[KPress enter to set Indeterminate state
pause>nul
call :set_pr 3
echo %ESC%[u%ESC%[KPress enter to set Paused state
pause>nul
call :set_pr 4
echo %ESC%[u%ESC%[KPress enter to remove progress
pause>nul
call :set_pr 0
echo %ESC%[u%ESC%[K
goto :EOF
:set_pr
echo %ESC%]9;4;%~1;%~2%ESC%\