Cool control characters

by (no login)

I've implemented all the control characters for Demo #7, so when you print them the results are exactly that same as what QBASIC does.

For your reference:
CHR$(7) beeps
CHR$(8) DOESN'T do a backspace, it draws the ASCII character as per normal (this is the same in QBASIC, to perform a backspace PRINT CHR$(29)+" "+CHR$(29))
CHR$(9) tabs
CHR$(10) begins a new line (exactly like CHR$(13))
CHR$(11) is like LOCATE top_view_print_row,1
CHR$(12) is like CLS
CHR$(13) begins a new line (exactly like CHR$(10))

Controlling the cursor without changing anything on screen...
CHR$(28) advances the cursor one position
CHR$(29) moves the cursor back one position
CHR$(30) moves the cursor up one row maintaining the same horizontal position
CHR$(31) moves the cursor down one row maintaining the same horizontal position

Try this out in QBASIC, they are really fun and great for making custom input routines for when INPUT just won't do.

Posted on Apr 5, 2008, 8:58 PM
from IP address 58.106.166.186

Respond to this message   

Return to Index