Last active
August 4, 2024 17:33
-
-
Save k-takata/2d4f562bacf8bae6691973a540970117 to your computer and use it in GitHub Desktop.
Testing ANSI color sequence on Windows 10 and other terminal emulators
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
rem Based on Todd Larason's 256color2.pl. | |
rem Ported to Windows 10's Command Prompt. | |
setlocal EnableDelayedExpansion | |
rem display the colors | |
rem first the system ones: | |
echo System colors: | |
set str= | |
for /l %%c in (0,1,7) do ( | |
set str=!str