NBASIC
Inside NBASIC
Introduction
What's New
About NBASIC
Downloads
Screenshots
Hints and Tips
Peeks and Pokes
Inside NBASIC
FAQs
Support
Contact Us
Links
Español
Control Characters

Character Screen Printer
CHR$(&H07) Bell  
CHR$(&H08) Backspace  
CHR$(&H09) Tab Tab
CHR$(&H0C) Formfeed (clears the screen) Formfeed
CHR$(&H0D) LineFeed LineFeed

Escape Sequences

Sequence Function
Esc A Save cursor position
Esc [n]B Move cursor backward
Esc [f][;[b]]C Set text color
Esc [n]D Move cursor down
Esc E Clear to end of line
Esc [n]F Move cursor forward
Esc G Clear to beginning of line
Esc [n]H Delete line
Esc 1I Inverse on
Esc I or Esc 0I Inverse off
Esc [n]J Insert line
Esc [n]K Delete character
Esc [r][;[c]]L Set cursor location
Esc N Clear line
Esc O Load cursor position
Esc [n]P Insert character
Esc R Reset attributes
Esc S Clear screen
Esc 1T Save text colors
Esc T or Esc 0T Restore text colors
Esc [n]U Move cursor up
Esc [n]X Clear spaces

The following example turns inverse on, prints "Hello" and then turns inverse off (Note: escape sequences must be printed using the + operator without any intervening print separators such as ; (semicolon)):

PRINT CHR$(27)+"1I";"HELLO";CHR$(27)+"0I"


Check back frequently for updated information.
Copyright © 2003-2019 SylvaWare