Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Basic Misc > Re: QBASIC CHR$...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 4 of 9 Topic 1387 of 1492
Post > Topic >>

Re: QBASIC CHR$ command to move cursor to the left?

by ArarghMail711NOSPAM@[EMAIL PROTECTED] Nov 16, 2007 at 07:03 PM

On Sat, 17 Nov 2007 00:58:26 +0100, Peter Knutsen
<peter@[EMAIL PROTECTED]
> wrote:

>Eric wrote:
>> On Nov 16, 6:08 pm, Peter Knutsen <pe...@[EMAIL PROTECTED]
> wrote:
>> 
>>>Is there a CHR$ command in MS QBASIC to move the cursor one step to the
>>>left?
>> 
>> 
>> I used to use ANSI graphics command strings that begin with escape and
>> the left-bracket. I don't know of any other option other than Locate,
>> but there may be such as thing as a single character command to move
>> the cursor.
>
>On the off chance that Richard's suggestion doesn't work, how do I go 
>about using ANSI commands/functions in MS QBASIC?
>
>Just point me in the right direction, then I might be able to figure out 
>the specifics on my own, but so far I haven't been able to find anything 
>involving ANSI in the F1 Help.

For ANSI commands to work, you need to have ANSI.SYS loaded.

FYI:  from msdos 6.00 ansi.sys

ESC[#A        Cursor Up
ESC[#B        Cursor Down
ESC[#C        Cursor Forward
ESC[#D        Cursor Backward
ESC[#;#H      Cursor Position (Y,X)
ESC[#J        Erase in Display
ESC[#K        Erase in Line
ESC[#;#R      Cursor Position Re****t (Y,X)
ESC[#;#f      Horizontal and Vertical Position (Y,X)
ESC[=#h       Set Mode
ESC[?7h       "
ESC[=#l       Reset Mode
ESC[?7l       "
ESC[#;...;#m  Set Graphics Rendition
ESC[6n        Device Status Re****t
ESC[#;#;...#p Keyboard Key Reassignment
ESC["string";p "
ESC[s         Save Cursor Position
ESC[u         Restore Cursor Position

m options
	0	reset all
	1	bold
	4	underline
	5	blink
	7	reverse
	8
	30-37	fg color
	40-47	bg color
-- 
ArarghMail711 at [drop the 'http://www.'
from ->] http://www.arargh.com
BCET Basic Compiler Page: http://www.arargh.com/basic/index.html

To reply by email, remove the extra stuff from the reply address.
 




 9 Posts in Topic:
QBASIC CHR$ command to move cursor to the left?
Peter Knutsen <peter@[  2007-11-17 00:08:59 
Re: QBASIC CHR$ command to move cursor to the left?
Eric <englere_geo@[EMA  2007-11-16 15:19:39 
Re: QBASIC CHR$ command to move cursor to the left?
Peter Knutsen <peter@[  2007-11-17 00:58:26 
Re: QBASIC CHR$ command to move cursor to the left?
ArarghMail711NOSPAM@[EMAI  2007-11-16 19:03:24 
Re: QBASIC CHR$ command to move cursor to the left?
"news@[EMAIL PROTECT  2007-11-16 15:38:15 
Re: QBASIC CHR$ command to move cursor to the left?
Peter Knutsen <peter@[  2007-11-17 00:57:20 
Re: QBASIC CHR$ command to move cursor to the left?
Peter Knutsen <peter@[  2007-11-17 01:02:52 
Re: QBASIC CHR$ command to move cursor to the left?
ArarghMail711NOSPAM@[EMAI  2007-11-16 19:04:16 
Re: QBASIC CHR$ command to move cursor to the left?
ArarghMail711NOSPAM@[EMAI  2007-11-16 19:00:22 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 2:38:29 CDT 2008.