ANSI Escape Sequences in DOSBox
A short video demonstrating how to make ANSI escape sequences and use them in batch file menus in DOSBox.
You can type the ESC character in some text editors by holding down the Alt-key, type 027 on the numpad and release Alt.
Colour and text formatting, ESC[#(;#)m
attributes
0 normal display
1 alternate display
5 blink on
7 reverse colours
foreground colours
30 black
31 red
32 green
33 yellow
34 blue
35 magenta
36 cyan
37 white
background colours
40 black
41 red
42 green
43 yellow
44 blue
45 magenta
46 cyan
47 white
erase functions
ESC[2J clear screen and home cursor
ESC[K clear to end of line
cursor controls
ESC[#;#H moves cursor to line #, column #
ESC[H moves cursor to line 0, column 0
ESC[#A moves cursor up # lines
ESC[#B moves cursor down # lines
ESC[#C moves cursor right # spaces
ESC[#D moves cursor left # spaces