TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: REJEAN LAMBERT
from: BRIAN MCCLOUD
date: 1997-12-12 05:40:00
subject: Simple Dos/Bios calls

-> 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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.