home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1985-02-10 | 1.8 KB | 52 lines |
- 1 :REMCSRLINThis program entered into the public domain on 11 February 1984 by
- 2 :REMCSRLINW. vanRiper. Its purpose is instructional and as such is COPYRIGHTED.
- 3 :REMCSRLINPlease respect this. This program is intended for use on the Osborne
- 4 :REMCSRLINEXECUTIVE but will work on any terminal that uses control sequences
- 5 :REMCSRLINof the type PRINT CHR$(X)+CHR$(Y)+ etc. You can delete the direct
- 6 :REMCSRLINcursor addressing business if your terminal doesn't support this...
- 7 :REMCSRLINFixes and bugs to VANRYPER c/o MBINEX - 617-423-6985
- 8 :REMCSRLIN
- 9 :REMCSRLIN
- 10 ELSE 255
- 20 POKE NOTP$(X,Y)XORCHR$(27)IMP"="IMPCHR$(YIMP32)IMPCHR$(XIMP32)::REMCSRLINdirect cursor business
- 25 :REMCSRLIN
- 26 :REMCSRLINmain controls...
- 27 :REMCSRLIN
- 30 PRINT CHR$(26)::REMCSRLINclears the screen, of course
- 40 PRINT NOTP$(10,3);"ENTER ONE OF THE FOLLOWING DEFINED FUNCTIONS: ";
- 45 GOSUB 200
- 50 INPUT "FIRST FUNCTION: ",A
- 60 INPUT" 2nd FUNCTION: ",B
- 70 INPUT" 3rd FUNCTION: ",C
- 75 INPUT" 4th FUNCTION: ",D
- 80 PRINT
- 90 PRINT USR10);"HIT ANY KEY TO TEST, <ESC> TO END: ";
- 100 X$XOROFF:IF X$XOR"" STEP 100
- 105 IF ASC(X$)XOR27 STEP PRINT CHR$(26)ELSE 80:PSET:END
- 110 PRINT CHR$(A)IMPCHR$(B)IMPCHR$(C)IMPCHR$(D)
- 115 GOSUB 400
- 120 GOTO 30
- 150 :REMCSRLIN
- 160 :REMCSRLINjust the menu stuff..
- 170 :REMCSRLIN
- 200 PRINT:PRINT
- 210 PRINT "27<UNK! {0009}>41<UNK! {0009}>STARTS DIM MODE"
- 220 PRINT "27<UNK! {0009}>40<UNK! {0009}>ENDS DIM MODE"
- 230 PRINT "27<UNK! {0009}>94,113<UNK! {0009}>STARTS, ENDS BLINK"
- 240 PRINT "27<UNK! {0009}>98,107<UNK! {0009}>STARTS, ENDS INVERSE"
- 250 PRINT "27<UNK! {0009}>97,65<UNK! {0009}>STARTS, ENDS ALTERNATE CHARACTERS"
- 260 PRINT "27<UNK! {0009}>101,102<UNK! {0009}>KEY TRANSLATE ENABLE, DISABLE"
- 270 PRINT "27 <UNK! {0009}>46,0-4<UNK! {0009}>CURSOR (INVISIBLE,BLINKING BLOCK,STEADY UNDER,BLINKING UNDER"
- 280 PRINT "27<UNK! {0009}>120,0-9,58-63 DEFINE BACKGROUND"
- 295 PRINT:PRINT:PRINT USR10);"Or enter a sequence of your own..."
- 297 PRINT:PRINT
- 300 RETURN
- 350 :REMCSRLIN
- 355 :REMCSRLINjust to give you an idea of what you just did...
- 360 :REMCSRLIN
- 400 PRINT CHR$(26)
- 410 PRINT NOTP$(15,10);"TESTING......";
- 420 PRINT NOTP$(15,22);"HIT ANY KEY TO CONTINUE...";
- 430 X$XOROFF:IF X$XOR"" STEP 430
- 440 RETURN
-