<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Sat, 19 Jan 1991 07:13:15 GMT
From   : cs.utexas.edu!ut-emx!austex!roadhog@tut.cis.ohio-state.edu (Lindsay Haisley)
Subject: CP/M & MBASIC question

slsw2@cc.usu.edu writes:

> >      1) Is there a command in Miscrosoft BASIC (M-80) that will
> >      clear the screen and home the cursor? I have all docs but they
> >      say nothing.
> 
> Try this:
> 
> PRINT CHR$(26) : REM Clear screen
> PRINT CHR$(27);"=";CHR$(X+31);CHR$(Y+31) : REM move cursor
> 

The move cursor sequence, while correct, is unnecessary since the act
of clearing the screen with CHR$(26) leaves the cursor in the home 
position as well as clearing any video attributes which may have been set.
 
                                           Lindsay Haisley


"Everything works if you let it!"
 ---  Travis J. Redfish
 +++++++++++++++++++++++++++
uucp: austex!roadhog@emx.utexas.edu  OR  roadhog%austex.uucp@emx.utexas.edu
 BBS: (512) 259-1261 (Z-Node 77 - aka - Kaypro Club of Austin)

<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>