4 ms·
Cute, but I am thankful for the modern IDEs. Retyping a full line to fix a line is antiquated.
by adamredwoods 5y ago
Cute, but I am thankful for the modern IDEs. Retyping a full line to fix a line is antiquated.
- marcodiego 5y agoI remember on the MSX that you could simply scroll up the cursor to the line that must be fixed, re-type just what was need to change and press enter. The interface of some 80's home computers was surprisingly productive. A primitive form of completion was already implemented on ZX Spectrum (I think): you simply pressed a key and it automatically completed the BASIC command starting with the corresponding character.
- zozbot234 5y ago> A primitive form of completion was already implemented on ZX Spectrum (I think): you simply pressed a key and it automatically completed the BASIC command that starting with the corresponding character. That was more than completion, you were actually entering program tokens directly with no lexing at all. A bit like programming in Scratch today where you're actually building an entire AST visually by snapping blocks together, so you can also dispense with parsing because only certain block shapes will "fit" visibly in a given role.
- ngcc_hk 5y agoIf so, can one have a visual block lisp … lisp is building ast as well.
- James-Livesey 5y agoYou'll find it's very similar in atto! Use the Up/Down arrow keys to go to previous lines, and you'll be able to edit those lines directly. The currently-edited line will be saved when you go to a different line. The display will also scroll if your caret goes past the top/bottom of the terminal, which is handy for editing large atto programs!
- SamBam 5y agoThis supports a cursor. Press your up arrow to the line you want to edit, and edit in place.
- James-Livesey 5y agoI agree, which is why I have implemented some useful editing features that might make it easier to enter your programs: - Syntax highlighting, to make code easier to read - Typing `edit` followed by the line number, and then pressing Enter, will bring up the line you wish to edit. Press Enter to then save that line - Use the Up/Down arrow keys to go to previous lines and edit them. Moving off the line will save it. This can also be used after running your program since it'll skip past the output and find the previously-entered program line. Using arrow keys will also scroll the screen up/down, too - Typing `list` will bring up the full program, and you can specify a range of lines to list, such as `list 20-100` - The `renum` command will renumber all program lines as multiples of 10, and additionally will modify all references to lines in `goto` and `gosub` commands It is also possible to use the `import` and `export` commands (or Ctrl+O and Ctrl+S) to save/load your program to a .atto file. That way, you can edit your code in your favourite text editor!
- mhd 5y agoYeah, three cheers for modern IDEs like edlin.
- pjmlp 5y agoYou mean modern like Turbo Basic, QuickBasic, HiSoft BASIC, AMOS? :)