Article View: comp.os.os2.programmer
Article #2VioGetMode in MSC 6.00A
From: hank
Date: Tue, 27 Oct 1992 05:16
Date: Tue, 27 Oct 1992 05:16
30 lines
1496 bytes
1496 bytes
Is there a known bug in the MSC 6.00A version of VioGetMode? I'm trying to use Walter's recent post of PCcurses and sc under OS/2 1.3. (His port is for OS/2 2.0.) There are a few changes (and some bugs--no reply from Walter so far) needed, but a short test program using VioGetMode fails sometimes. I have static PVIOMODEINFO modeinfo = NULL; ... modeinfo = (PVIOMODEINFO) malloc(sizeof(VIOMODEINFO)); VioGetMode(modeinfo,0); The row and col in modeinfo are sometimes wrong. I'm using the large-memory model. All I needed for sc was the screen rows and columns. If I hard-code the screensize, sc works under OS/2 1.3 (in preliminary tests). Anyone have problems with VioGetMode? Remarks on sc, spreadsheet calc 6.21, and PCcurses. Walter modified curses to use 'vscan'. His use of 'vscan' indicates that it should be 'vsscan' (unless Watcom C is different than gcc). I wrote a hack to handle vscan under MSC. The "save before exit" feature needs a different filename under OS/2 (easy to fix). -- --Darrel Hankerson hank@ducvax.auburn.edu
Technical Details
Message-ID:
<1992Oct27.001633.1@ducvax.auburn.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!news.duc.auburn.edu!ducvax.auburn.edu!hankShow Full Headers
Complete Article Headers
Newsgroups: comp.os.os2.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!news.duc.auburn.edu!ducvax.auburn.edu!hank From: hank@ducvax.auburn.edu Subject: VioGetMode in MSC 6.00A Message-ID: <1992Oct27.001633.1@ducvax.auburn.edu> Lines: 30 Sender: usenet@news.duc.auburn.edu (News Account) Nntp-Posting-Host: ducvax Organization: Auburn University, AL Date: Tue, 27 Oct 1992 05:16:33 GMT Lines: 30