Article View: comp.os.os2.programmer
Article #2108Re: Vio buffer pointer question
From: Mark Hessling
Date: Fri, 16 Oct 1992 05:41
Date: Fri, 16 Oct 1992 05:41
43 lines
2089 bytes
2089 bytes
checker@acf5.NYU.EDU (checker) writes: >I'm trying to get some Vio code working without any manuals (it was so >nice of IBM to include no documentation on the freaking API in the >WorkSet) and I'm having some trouble with direct video writes. Agree totally!! >I'm creating a VIOMODEINFO struct (and filling in the cb member with the >size) and passing it to VioGetMode. The buf_addr member has the correct >address after the call for the mode I'm in (0x000B8000) but I get a GP >fault when I try to write to it. Do I have to do something before I can >do a direct video write? Can I even _do_ a direct video write? If not, >what is that pointer for? This is an extract from one module from the PDCurses 2.0 package: VIOMODEINFO modeInfo; modeInfo.cb = sizeof(modeInfo); VioGetMode(&modeInfo,0); ... This works fine. >Is there any example code around that shows how to do direct text mode >(graphics modes would be a bonus) video memory writes using Vio? You could get hold of the complete source of PDCurses 2.0 from: accord.dciem.dnd.ca in /pub/curses/pdcurses Only accessible 6pm to 6am Eastern(?) time. >Chris Cheers, Mark ------------------------------------------------------------------------ Mark Hessling Email: mark@snark.itc.gu.edu.au DBA,ITS Phone: +617 875 7691 Griffith University Fax: +617 875 7877 Nathan, Brisbane QLD 4111 Australia *** PDCurses Maintainer *** ------------------------------------------------------------------------
Technical Details
Message-ID:
<mark.719214111@snark>Path:
arc1-ca.pugleaf.net!sparky!uunet!know!mips2!cass.ma02.bull.com!think.com!rpi!batcomputer!munnari.oz.au!bunyip.cc.uq.oz.au!griffin!snark!markReferences:
<1998@acf5.NYU.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!know!mips2!cass.ma02.bull.com!think.com!rpi!batcomputer!munnari.oz.au!bunyip.cc.uq.oz.au!griffin!snark!mark From: mark@snark.itc.gu.edu.au (Mark Hessling) Newsgroups: comp.os.os2.programmer Subject: Re: Vio buffer pointer question Message-ID: <mark.719214111@snark> Date: 16 Oct 92 05:41:51 GMT References: <1998@acf5.NYU.EDU> Sender: news@griffin.itc.gu.edu.au Organization: ITC, Griffith University, Brisbane, Australia Lines: 43 Nntp-Posting-Host: snark.itc.gu.edu.au