-> How am I supposed to output colored text ????
-> I've been able to put together a functional program using int 10h - ah=13,
-> which outputs a string with a specified text attribute, but it requires
he
-> output row and column. Is there something else I can use that just uses
the
-> current position ? Something closer to a writeln / printf than this ?
Try int 21h function 09h, with ds:dx pointing to the string terminated with
.
I'm not certain whether ANSI codes will work with this. With function 40h,
you
can send to file handle 0 and it will show up on screen, though I doubt ansi
codes would allow color here. Another trick you could try is reading the
cursor position, then setting up a REP MOVSW to copy the text and the
attribute
bytes to the appropriate position in the video display.
((Cloud))
MauveCloud@juno.com
--- PCBoard (R) v15.3/M 10
---------------
* Origin: Next time, Dial The Wrong Number! (209) 943-1880 (1:208/205)
|