Running Programs in Curses UI¶
How to execute your BASIC programs.
Running a Program¶
- Press {{kbd:run:curses}}
- Program executes in the output window
- Output appears below the editor
Example¶
Press {{kbd:run:curses}} → Output window shows:
Output Window¶
The bottom part of the screen shows program output:
- Program output (PRINT statements)
- Runtime errors
- INPUT prompts
Interactive Programs¶
Programs can prompt for input:
When run: 1. Prompt appears in output window 2. Type your response 3. Press Enter 4. Program continues
Stopping a Program¶
Programs normally run until: - END statement - Last line reached - STOP statement - Runtime error
Note: Press {{kbd:stop:curses}} to stop a running program.
Listing Programs¶
Access through the menu bar to list the program to the output window.
This shows all program lines with line numbers.
Clearing Output¶
Output window clears automatically when you: - Run a new program - Load a new program
Common Issues¶
"Syntax Error"¶
Check your BASIC syntax: - Line numbers must be first - Commands must be valid BASIC keywords - Strings need quotes
"Runtime Error"¶
Program has a logic error: - Division by zero - Invalid GOTO target - Type mismatch
Error message shows line number where error occurred.
No Output¶
Check if: - Program has PRINT statements - Program reached those statements - Program didn't hit an error first
See Also¶
- Editing Programs - Write code
- Keyboard Shortcuts - All shortcuts
- BASIC Statements - Language reference