Thread View: alt.lang.basic
3 messages
3 total messages
Started by Wolverine
Wed, 23 Dec 1992 04:04
Qbasic, getting 132 columns
Author: Wolverine
Date: Wed, 23 Dec 1992 04:04
Date: Wed, 23 Dec 1992 04:04
14 lines
1189 bytes
1189 bytes
I have been using Qbasic 4.5 for many years (and basics before it). I had written a pretty good descript.ion editor for 4dos and was in the process of revising it for the 120 limit of descriptions. But, there has been no way that I have found out to obtain a 132 column mode in Qbasic 4.5. I can only assume that there might be a library or something out there that can do this. If you can help me, please email me at wolvy@netcom.com or post here. Any help would be most appreciative. p.s. I have been using QB45 for a long time and could offer my assistance to anyone needing it. (I've delt with ALOT of quirks in dealing with various problems related to get power out of a minutely powerfull language (sarcastically spoken :) ). Thanx Craig
Re: Qbasic, getting 132 columns
Author: rice
Date: Wed, 23 Dec 1992 23:36
Date: Wed, 23 Dec 1992 23:36
42 lines
3058 bytes
3058 bytes
In article <1992Dec23.040418.11296@netcom.com>, wolvy@netcom.com (Wolverine) writes:
> I have been using Qbasic 4.5 for many years (and basics before it).
> I had written a pretty good descript.ion editor for 4dos and was in
> the process of revising it for the 120 limit of descriptions.
> But, there has been no way that I have found out to obtain a 132
> column mode in Qbasic 4.5. I can only assume that there might be
> a library or something out there that can do this. If you can help
> me, please email me at wolvy@netcom.com or post here.
> Any help would be most appreciative.
> p.s. I have been using QB45 for a long time and could offer my
> assistance to anyone needing it. (I've delt with ALOT of quirks
> in dealing with various problems related to get power out of a
> minutely powerfull language (sarcastically spoken :) ).
The reason for his is that 132 column mode is much hardware dependent.
Different Video Boards have different commands to change to this mode. Without
the right Video Hardware, you may not even be able to use 132 column mode.
As far as Qbasic is concerned, if your variable is 132 characters wide, you can
put 132 characters in it, regardless of the screen width, but to get the screen
width to 132 columns, you'll have to write something to tell the video board to
go into 132 column mode. In my system, I can use a dos command "display 132 on"
to change video modes. This calls "display.com" to change the setup.
From Qbasic, I would issue the command "shell display 132 on" from the program
to cause the video to switch to 132 column mode. Similarly "shell display 132
off", would switch the hardware back to 80 column mode.
The construction of the call to "shell" in Qbasic, would be dependent on your
particular hardware. It's usually a combination of both the Video Board and
the monitor in order for 132 columns to work. Some monitors don't support the
scan rate and fonts necessary to do 132, even tho the Video board may support
it.
Check the book on your video board to see if it supports 132. If so, it should
tell you how to do it from the command line. Try it. If it works, then you
should be able to use "shell ....." to do it from a Qbasic program.
John Rice K9IJ | "Did I say that ?" I must have, but It was
| MY opinion only, no one else's...Especially
| Not my Employer's....
rice@ttd.teradyne.com | Purveyor of Miracles,Magic and Sleight-of-hand
Re: Qbasic, getting 132 columns
Author: Wolverine
Date: Mon, 28 Dec 1992 21:15
Date: Mon, 28 Dec 1992 21:15
47 lines
3288 bytes
3288 bytes
rice@ttd.teradyne.com writes: >In article <1992Dec23.040418.11296@netcom.com>, wolvy@netcom.com (Wolverine) writes: >> I have been using Qbasic 4.5 for many years (and basics before it). >> I had written a pretty good descript.ion editor for 4dos and was in >> the process of revising it for the 120 limit of descriptions. >> But, there has been no way that I have found out to obtain a 132 >> column mode in Qbasic 4.5. I can only assume that there might be >> a library or something out there that can do this. If you can help >> me, please email me at wolvy@netcom.com or post here. >> Any help would be most appreciative. >> p.s. I have been using QB45 for a long time and could offer my >> assistance to anyone needing it. (I've delt with ALOT of quirks >> in dealing with various problems related to get power out of a >> minutely powerfull language (sarcastically spoken :) ). >The reason for his is that 132 column mode is much hardware dependent. >Different Video Boards have different commands to change to this mode. Without >the right Video Hardware, you may not even be able to use 132 column mode. >As far as Qbasic is concerned, if your variable is 132 characters wide, you can >put 132 characters in it, regardless of the screen width, but to get the screen >width to 132 columns, you'll have to write something to tell the video board to >go into 132 column mode. In my system, I can use a dos command "display 132 on" >to change video modes. This calls "display.com" to change the setup. >From Qbasic, I would issue the command "shell display 132 on" from the program >to cause the video to switch to 132 column mode. Similarly "shell display 132 >off", would switch the hardware back to 80 column mode. didn't want to make this into a huge thing, but let me explain this one bit further now. I can switch to maximum 132 by 60 mode at dos no problem. I can even switch the mode's in qbasic 4.5 by using a int call to the bios through a library I have, but to actually write in these modes and have the bios recognize it (i.e. do full scroll for 132 columns when it gets to the end of screen, etc..) and to also use locate statements and have them read in correctly is where I'm having my problem. The text either wraps around at the 80th column instead of #132 and if you do a locate 5,1 it will be skewed and the actual location would be ~ 7,40 or something.... it's all because qb 4.5 has that limitation on the width command. if it didn't have that limitation, then there wouldn't probably be a problem. Wonder if it's hackable :) Thanx for all the help anyways... but like I left the msg before this one, I went ahead and re-edited my programs to scroll within a section of space similar to the way you do it in windows. it's not as nice, but it'll do for the interim. L8r Craig
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