TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: LARRY OLSON 72227,3467 (X)
from: Bob van der Poel 76510,2203
date: 1993-05-01 20:31:27
subject: #17986-#makpal

#: 17998 S12/OS9/68000 (OSK)
    01-May-93  20:31:27
Sb: #17986-#makpal
Fm: Bob van der Poel 76510,2203
To: LARRY OLSON 72227,3467 (X)

Larry, Here is a segment of code from a game I am working on...It selects a
screen for i/o, etc. Shout if you need more explanations:

 grpnum = getpid();
 path=open("/w",S_IREAD+S_IWRITE);
 if(path<1) dosomething to terminate...
 _gs_opt(path,&optbuf);  ...ya might want more here
 pause=optbuf.sg_pause;  ...to set up the keyboard
 optbuf.sg_pause=0;
 _ss_opt(path,&optbuf);
 KilBuf(path,grpnum,0);
 DWSet(path,0,0,0,80,26,WHITE,BLACK,BLACK);
 ScaleSw(path,0);    /* make sure scaling is on */
 LSet(path,0);
 CurOff(path);
 ...more init stuff ...
 _ss_wset(path,WT_FWIN,&windat);
 BColor(path,BLACK);
 Clear(path);
 Select(path);

I've not run into the 'fuzzy screen' problem. The "more init stuff" apparently
takes the time required (from Mike's message).

There is 1 Reply.

SOURCE: compuserve via textfiles.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™.