The VT100 Batch Library is a simple and efficient solution for incorporating VT100/ANSI escape codes into Windows batch files. It provides a collection of pre-defined variables representing common VT100 codes for text formatting, cursor control, and terminal color management. This library is ideal for enhancing the user interface of batch scripts.
- Simplified usage of VT100 escape codes in batch files.
- Pre-defined variables for text formatting, colors, and cursor control.
- Fully customizable and extensible.
- Lightweight and easy to integrate.
- Clone this repository or download the
VT100.bat
file (located inside thesrc
folder). - Include the library in your batch script using:
call VT100.bat
Example
@ECHO OFF
CALL VT100.bat
ECHO %_RED%This is red text%_RESET%
ECHO %_Green%This is Green text%_RESET%
ECHO %_Negative%Negative Coloring on text%_RESET%
PAUSE
Since there are many variables defined in this library, so instead of listing everything here in the read me file which needs to be updated every time in future what I can suggest to the user is that they can run the following command in that terminal to see all the available variables in the particular version of VT100 library.
call VT100.bat /?