home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / alt / lang / basic / 1002 < prev    next >
Encoding:
Text File  |  1992-12-28  |  3.2 KB  |  61 lines

  1. Newsgroups: alt.lang.basic
  2. Path: sparky!uunet!wupost!csus.edu!netcom.com!wolvy
  3. From: wolvy@netcom.com (Wolverine)
  4. Subject: Re: Qbasic, getting 132 columns
  5. Message-ID: <1992Dec28.211511.27014@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. References: <1992Dec23.040418.11296@netcom.com> <1992Dec23.174139.1@ttd.teradyne.com>
  8. Date: Mon, 28 Dec 1992 21:15:11 GMT
  9. Lines: 50
  10.  
  11. rice@ttd.teradyne.com writes:
  12. >In article <1992Dec23.040418.11296@netcom.com>, wolvy@netcom.com (Wolverine) writes:
  13. >> I have been using Qbasic 4.5 for many years (and basics before it).
  14. >> I had written a pretty good descript.ion editor for 4dos and was in
  15. >> the process of revising it for the 120 limit of descriptions.  
  16. >> But, there has been no way that I have found out to obtain a 132
  17. >> column mode in Qbasic 4.5.  I can only assume that there might be
  18. >> a library or something out there that can do this.  If you can help
  19. >> me, please email me at wolvy@netcom.com or post here.
  20. >> Any help would be most appreciative.
  21. >> p.s.  I have been using QB45 for a long time and could offer my
  22. >> assistance to anyone needing it. (I've delt with ALOT of quirks
  23. >> in dealing with various problems related to get power out of a
  24. >> minutely powerfull language (sarcastically spoken :) ).
  25. >The reason for his is that 132 column mode is much hardware dependent.
  26. >Different Video Boards have different commands to change to this mode. Without
  27. >the right Video Hardware, you may not even be able to use 132 column mode.
  28. >As far as Qbasic is concerned, if your variable is 132 characters wide, you can
  29. >put 132 characters in it, regardless of the screen width, but to get the screen
  30. >width to 132 columns, you'll have to write something to tell the video board to
  31. >go into 132 column mode. In my system, I can use a dos command "display 132 on"
  32. >to change video modes. This calls "display.com" to change the setup.
  33. >From Qbasic, I would issue the command "shell display 132 on" from the program
  34. >to cause the video to switch to 132 column mode. Similarly "shell display 132
  35. >off", would switch the hardware back to 80 column mode.
  36.  
  37. didn't want to make this into a huge thing, but let me explain this one bit
  38. further now.  I can switch to maximum 132 by 60 mode at dos no problem.
  39. I can even switch the mode's in qbasic 4.5 by using a int call to the bios
  40. through a library I have, but to actually write in these modes and have the
  41. bios recognize it (i.e. do full scroll for 132 columns when it gets to the
  42. end of screen, etc..) and to also use locate statements and have them read in
  43. correctly is where I'm having my problem.  The text either wraps around at 
  44. the 80th column instead of #132 and if you do a locate 5,1 it will be 
  45. skewed and the actual location would be ~ 7,40 or something....
  46.  
  47. it's all because qb 4.5 has that limitation on the width command.  if it
  48. didn't have that limitation, then there wouldn't probably be a problem.
  49.  
  50. Wonder if it's hackable :)
  51.  
  52. Thanx for all the help anyways...  but like I left the msg before this one, I 
  53. went ahead and re-edited my programs to scroll within a section of space 
  54. similar to the way you do it in windows.  it's not as nice, but it'll do
  55. for the interim.
  56. L8r
  57. Craig
  58.  
  59.  
  60.  
  61.