Thread View: alt.msdos.programmer
1 messages
1 total messages
Started by Christian J. Callsen
Sun, 14 Jan 1990 14:39
How do you use 43 lines in EGA-textmode in TurboC 2.0 ?
Author: 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":---------------------------------------------------
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads