ANSI Escape Sequences in DOSBox

Channel:
Subscribers:
3,160
Published on ● Video Link: https://www.youtube.com/watch?v=qWqlFtVLbuE



Duration: 6:42
2,957 views
33


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







Tags:
ANSI Escape Code
DOSBox (Software)
Escape Sequence
American National Standards Institute (Nonprofit Organization)
Software (Industry)
Batch File (File Format)
batch file menu
how to make
Tutorial (Media Genre)
Programming Language (Software Genre)
ANSI Escape Sequences
how to add colours to batch file menus
colors to batch file menu