From: Wolfgang.Ehrhardt.PLEASE.REMOVE@munich.netsurf.de   
      
   On Thu, 9 Dec 2004 03:27:02 +0100, "Femme Verbeek" wrote:   
      
   >   
   >"Samuel Fleischer" schreef in bericht   
   >news:cp7ni9$i3d$1@newsserv.zdv.uni-tuebingen.de...   
   >> "Wolfgang Ehrhardt" wrote   
   >> [...]   
   >> > >Is it possible to detect the amount of characters which fit   
   >> > >into one line of the screen without using the CRT-unit (and   
   >> > >also without writing character by character to the screen   
   >> > >until the x-coordinate switches back to 1 again)?   
   >> > Try reading from the BIOS data area   
   >> > screncolums = memw[$40:$4a];   
   >> >   
   >> > Hope that helps   
   >>   
   >> Yes. It does. It works perfect.   
   >> Thank you very much.   
   >>   
   >Note that this does not work on all computers. Especially the new ones   
   >where old DOS biossing is often neglected.   
   >It will also not work in protected mode.   
      
   At least on my Win98 system in DOES work with the obvious change   
   to memw[Seg0040:$4a]. And I do not see why it should not work, because   
   most video mode changes are done via bios calls or if not they should   
   update the well documented BIOS parameters.   
      
   Remember we are talking about real mode DOS programs, Turbo will use   
   BIOS calls. So if they are broken in a DOS box, the program that uses   
   them is not very useful.   
      
   Wolfgang   
   --   
   In order to e-mail me a reply to this message, you will have   
   to remove PLEASE.REMOVE from the address shown in the header   
   or get it from http://home.netsurf.de/wolfgang.ehrhardt   
   (Free AES, CRC, Hash, and HMAC source for Pascal/Delphi)   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|