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

  1. Newsgroups: alt.lang.basic
  2. Path: sparky!uunet!usc!rpi!newsserver.pixel.kodak.com!laidbak!tellab5!balr!ttd.teradyne.com!news
  3. From: rice@ttd.teradyne.com
  4. Subject: Re: Qbasic, getting 132 columns
  5. Message-ID: <1992Dec23.174139.1@ttd.teradyne.com>
  6. Lines: 45
  7. Sender: news@ttd.teradyne.com (News Feed Account)
  8. Nntp-Posting-Host: mrdata.ttd.teradyne.com
  9. Organization: Teradyne Inc., Telecommunications Division
  10. References: <1992Dec23.040418.11296@netcom.com>
  11. Date: Wed, 23 Dec 92 23:36:29 GMT
  12. Lines:      46
  13.  
  14. In article <1992Dec23.040418.11296@netcom.com>, wolvy@netcom.com (Wolverine) writes:
  15. > I have been using Qbasic 4.5 for many years (and basics before it).
  16. > I had written a pretty good descript.ion editor for 4dos and was in
  17. > the process of revising it for the 120 limit of descriptions.  
  18. > But, there has been no way that I have found out to obtain a 132
  19. > column mode in Qbasic 4.5.  I can only assume that there might be
  20. > a library or something out there that can do this.  If you can help
  21. > me, please email me at wolvy@netcom.com or post here.
  22. > Any help would be most appreciative.
  23. > p.s.  I have been using QB45 for a long time and could offer my
  24. > assistance to anyone needing it. (I've delt with ALOT of quirks
  25. > in dealing with various problems related to get power out of a
  26. > minutely powerfull language (sarcastically spoken :) ).
  27.  
  28. The reason for his is that 132 column mode is much hardware dependent.
  29. Different Video Boards have different commands to change to this mode. Without
  30. the right Video Hardware, you may not even be able to use 132 column mode.
  31.  
  32. As far as Qbasic is concerned, if your variable is 132 characters wide, you can
  33. put 132 characters in it, regardless of the screen width, but to get the screen
  34. width to 132 columns, you'll have to write something to tell the video board to
  35. go into 132 column mode. In my system, I can use a dos command "display 132 on"
  36. to change video modes. This calls "display.com" to change the setup.
  37.  
  38. From Qbasic, I would issue the command "shell display 132 on" from the program
  39. to cause the video to switch to 132 column mode. Similarly "shell display 132
  40. off", would switch the hardware back to 80 column mode.
  41.  
  42. The construction of the call to "shell" in Qbasic, would be dependent on your
  43. particular hardware. It's usually a combination of both the Video Board and
  44. the monitor in order for 132 columns to work. Some monitors don't support the
  45. scan rate and fonts necessary to do 132, even tho the Video board may support
  46. it.
  47.  
  48. Check the book on your video board to see if it supports 132. If so, it should
  49. tell you how to do it from the command line. Try it. If it works, then you
  50. should be able to use "shell ....." to do it from a Qbasic program.
  51.  
  52.    John Rice        K9IJ     |  "Did I say that ?" I must have, but It was
  53.                              |   MY opinion only, no one else's...Especially
  54.                              |   Not my Employer's....
  55.    rice@ttd.teradyne.com     |   Purveyor of Miracles,Magic and Sleight-of-hand
  56.  
  57.  
  58.  
  59.