TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Stella
from: John Poltorak
date: 1995-03-25 13:01:20
subject: The draw

Monday March 20 1995, Mike Stella writes to Jay Collins:

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

 EW>> Write to stdout or cout.
 EW>> Open a file "CON" and write to it.
 EW>> Use VioWrtTTY.
 EW>> Re-invent an ANSI emulator.

 MS>    Howabout this, my newest method, used in the door game I'm writing:

 MS>       printf("Error reading %s!\n\rPlease inform the
SysOp!",filename);
 MS>       return;
 MS>    }
 MS>       // read the length of the file
 MS>    DosQueryFileInfo(infile,1,&infobuf,sizeof(infobuf));
 MS>       // malloc enough space
 MS>    stuff=(char *)malloc(infobuf.cbFile*sizeof(char));
 MS>       // read all the input file into the buffer (stuff)
 MS>    DosRead(infile,stuff,infobuf.cbFile,&l);
 MS>       // write the buffer to the screen
 MS>    VioWrtTTY(stuff,infobuf.cbFile,0);
 MS>       // close the file
 MS>    DosClose(infile);
 MS>       // free the buffer
 MS>    free(stuff);
 MS> }

How about using the MECCA language? It's specifically developed for use
with Maximus and takes care of a writing output to the remote user's
screen.

John

--- GoldED/2 2.50.Beta4+
* Origin: (2:250/313)
SEEN-BY: 105/42 620/243 711/401 409 410 413 430 807 808 809 934 955 712/407
SEEN-BY: 712/515 628 704 713/888 800/1 7877/2809
@PATH: 250/313 440/4 141/209 270/101 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™.