| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Re: Ansi Color |
Hi Richie,
RM> How can I write to the screen using ANSI color codes in a PM Program.
RM> Any help appreciated.
get the AVIO sample from Hobbes (AVBROWSE.ZIP). The author develops a
window class which sets up an AVIO Presentation Space and scroll bars.
VioWrtTTY, which is available to both VIO and AVIO, knows about ANSI
escape sequences.
one simple change to avio.c gets the job done:
/* #define Blast(l, x, y) VioWrtCharStr(l, Min(strlen(l), cxChScreen), x, y, hVPS) */
#define Blast(l, x, y) VioSetCurPos(x, y, hVPS), \
VioWrtTTY(l, Min(strlen(l), cxChScreen), hVPS)
be warned that scrolling (writing "\r\n") is terribly slow.
cu/2 Roland
... I program like a MAN. I use COPY CON PROGRAM.EXE
--- Blue Wave/Max v2.12 OS/2 [NR]
* Origin: CCWN: Leistung ueberzeugt !!! (2:246/1401)SEEN-BY: 105/42 620/243 624/50 711/401 409 410 413 430 807 808 809 934 942 SEEN-BY: 711/955 712/407 515 628 704 713/888 800/1 7877/2809 @PATH: 246/20 1102 24/999 240/5002 5500 396/1 3615/50 105/103 42 712/515 @PATH: 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
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™.