BASIC line editor: cursor keys, Home/End, Delete, and Right to recall a line
Typing a line number and pressing Right brings that program line up to edit. Left/Right move, Home/End (Ctrl-A/Ctrl-E) jump, typing inserts, Backspace and Delete remove, Enter takes the whole line; long lines wrap. To fit the ROM, the date code is smaller and SDCC gets more allocator effort; build.sh now fails if the code runs past 8000h. basic/test-edit.py checks the editor in the emulator. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
073db68754
commit
eb72d85834
8 files changed
+6473
-6227
No files matched your search
@@ -183,8 +183,10 @@ RUN
|
||||
```
|
||||
|
||||
Type numbered lines to store a program, or a statement without a number to run
|
||||
it at once (`PRINT 2^10`). Ctrl-C stops a running program; Backspace and Ctrl-U
|
||||
edit the line being typed.
|
||||
it at once (`PRINT 2^10`). Ctrl-C stops a running program. The line being
|
||||
typed can be edited with the cursor keys, Home, End, Backspace, Delete and
|
||||
Ctrl-U; type a line number and press Right to bring that program line up to
|
||||
edit.
|
||||
|
||||
- **Commands**: `RUN [line]`, `LIST [a][-b]`, `NEW` (also `SCRATCH`).
|
||||
- **Files in flash**: `SAVE "NAME"`, `LOAD "NAME"`, `RUN "NAME"`, `DIR`,
|
||||
|
||||
Reference in new issue
Block a user