TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Jay Collins
from: Mark Kimes
date: 1995-03-03 01:29:36
subject: Re: The draw

JC> Anyone know a way to dispay Thedraw ANsi's to the screen under
 JC>Os/2 using the VIO stuff?

You don't need VIO for that (though you can use VioWrtTTY).  All you
need is something like:

  FILE *fp;
  INT   c;

  if((fp = fopen("somefile.ans","r")) != NULL) {
    while((c = fgetc(fp)) != EOF)
      fputc(c,stdout);
    fclose(fp);
    fflush(stdout);
  }

If you elect to use VioWrtTTY, write more than one character at a time
for efficiency.

--- XHEd-OS/2 1.22
* Origin: The Pit (1:380/16)
SEEN-BY: 105/42 620/243 624/50 711/401 409 410 413 430 807 808 809 934 955
SEEN-BY: 712/407 515 628 704 713/888 800/1 7877/2809
@PATH: 380/25 396/1 3615/50 105/103 42 712/515 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™.