[alt.msdos.programmer] How do you use 43 lines in EGA-textmode in TurboC 2.0 ?

chris@iesd.auc.dk (Christian J. Callsen) (01/14/90)

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":---------------------------------------------------