Getting Started with Curses UI¶
Welcome to the MBASIC curses text interface!
What is the Curses UI?¶
The curses UI is a full-screen terminal interface that provides:
- Editor window (top) - Write your BASIC program
- Output window (bottom) - See program output
- Status line (bottom) - Commands and messages
Your First Program¶
Let's write a simple program:
-
Start MBASIC with curses:
-
You'll see the editor window at the top
-
Type your first line:
-
Press Enter to save the line
-
Type the next line:
-
Press Enter
-
Press {{kbd:run:curses}} to run
-
Output appears in the bottom window!
Essential Keys¶
You don't need to memorize everything. The status line shows common commands:
- {{kbd:help:curses}} - Help (you're here now!)
- {{kbd:run:curses}} - Run program
- {{kbd:quit:curses}} - Quit
No function keys needed!
Navigation¶
- Up/Down arrows - Move between lines
- Left/Right arrows - Move cursor within line
- Enter - Save current line
What's Next?¶
Now that you've run your first program:
- Editing Programs - Learn line editing
- Running Programs - More about execution
- File Operations - Save and load programs
- Keyboard Shortcuts - All shortcuts
Or jump to the BASIC language:
- Getting Started with BASIC - Language basics
- BASIC Statements - Full reference
Tips¶
- Press ESC to clear error messages
- Press {{kbd:help:curses}} to open help
- Status line shows available commands
- Lines auto-increment by 10 for easy editing