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.


|