Skip to content

Commit 80318c5

Browse files
authored
Merge pull request #514 from moscowchill/bat-pr
Fix ANSI escape codes displaying as literal text in winPEAS.bat
2 parents 7af6c33 + 336c53a commit 80318c5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

winPEAS/winPEASbat/winPEAS.bat

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -707,7 +707,8 @@ EXIT /B
707707

708708
:SetOnce
709709
REM :: ANSI escape character is set once below - for ColorLine Subroutine
710-
SET "E=0x1B["
710+
for /F %%a in ('echo prompt $E ^| cmd') do set "ESC=%%a"
711+
SET "E=%ESC%["
711712
SET "PercentageTrack=0"
712713
EXIT /B
713714

0 commit comments

Comments
 (0)