How to write text in different colors in DOS?

How to write text in DOS by setting each character to a different color?

+3
source share
5 answers

Depends on your programming language.

You can do this from a batch file:

+3
source

(1. ansi.sys 2. 10h), CGA- CGA- , 0xB800, . , ASCII , - ( - 4 , - 3 () ).

+2

ANSI escape-, , ++. , escape-.

+1

10H 10h

ah = 10h
al = 10h
bx = color register
ch = green
cl = blue
dh = red

I type funcion because it is labeled with assemply, no matter how you need a complete book about what works in DOS.

+1
source

Your question is not very clear, but if you are trying to write text in different colors to the terminal, ANSI escape codes are what you want to look at.

Are you sure you want to do this in the assembly? (according to your tag)

0
source

Source: https://habr.com/ru/post/1734753/


All Articles