Article View: alt.msdos.programmer
Article #464How do you use 43 lines in EGA-textmode in TurboC 2.0 ?
From: Christian J. Callsen
Date: Sun, 14 Jan 1990 14:39
Date: Sun, 14 Jan 1990 14:39
50 lines
2484 bytes
2484 bytes
Greetings, guys.
One of my friends and I are trying to write yet another csh-klone
(with some nifty features ...). I'vegot stuck with a little problem :
I want to use the 43-line textmode on an EGA-screen. But
gotoxy(20,41);
cprintf("%s ",string);
doesn't seem to work. In fact, it jumps 3-4 lines up the screen.
WHY ????
I have tried to set the textwindow to 43 lines with
window(1,1,80,43);
but that didn't do it. In the documentation to "gotoxy" it says
that y must be in the range 1-25.
I even tried putting the cursor position directly into the BIOS-RAM
area (45:0000-45:000F). Didn't work either.
Here are the questions :
1. How do I detect 43 lines & control cursor motion in 43-line mode
to print a string arbitrarily on the screen ???? (You can do it with
direct RAM-access to the CGA-screen B800:0000-B800:0D6F (approx), but that
doesn't position the cursor.) Besides, Direct RAM access isn't nice
behaviour.
2. Is there some implementation of curses/termcap/???? that does the
job ??? (I have NNANSI.SYS)
3. Do YOU have a suggestion ??? (Anything WILL be appreciated) !!!!
Please Email, if you don't feel inclined to inform the whole net.
Email: ...!mcsun!dkuug!iesd.auc.dk!chris (to be sure)
Thanx from Chris ;^)
_____________ : Med Venlig Hilsen & Greetings From
/ ennyn durin \ :
/* aran moria *\ : Chris J. Callsen [ chris@iesd.auc.dk ]
/** . . . **\ :
|/ . . \| : alias {uunet}...!mcvax!dkuug!iesd.auc.dk!chris (Chris)
||* . + . *|| :---------------------------------------------------
|/ \| :
|| #-- || : Three Rings For The Elven Kings Under The Sky ..
|| ***** || : Nine For Mortal Men Doomed To Die ..
|| *** || :
"pedo mellon a minno":---------------------------------------------------
Technical Details
Message-ID:
<1990Jan14.143934.9232@iesd.auc.dk>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!uunet!mcsun!sunic!dkuug!iesd!iesd.auc.dk!chrisShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!cs.utexas.edu!uunet!mcsun!sunic!dkuug!iesd!iesd.auc.dk!chris From: chris@iesd.auc.dk (Christian J. Callsen) Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc Subject: How do you use 43 lines in EGA-textmode in TurboC 2.0 ? Keywords: 43 lines , EGA, TurboC Message-ID: <1990Jan14.143934.9232@iesd.auc.dk> Date: 14 Jan 90 14:39:34 GMT Sender: chris@iesd.auc.dk (Christian J. Callsen) Reply-To: chris@iesd.auc.dk (Christian J. Callsen) Organization: Mathematics & Computer Science, University of Aalborg Lines: 50