It is 26/32bit neutral and runs on RISC OS 3.1x to RISC OS 5.x
Install via PackMan or manually run LineEditor from the attachment below. To run at boot, copy LineEditor to !Boot.Choices.Boot.Tasks
Changes in 2.79:
- removed commented code and tidied help
- moved modflags to be after code
- changed the special char in the dictionary to ^
- RISCOS311% added to avoid use of Dynamic Areas
- ROM% added to prevent errors being reported during init
- ReadLineV now preserves R4
Key combinations
| Escape or Ctrl-[ | Abandon current line and do not insert in buffer |
| Tab or Ctrl-I | Filename completion (beeps if no match) |
| Insert | Toggle insert and overtype modes for one line only |
| Copy | Allow normal screen copying for one line only |
| Shift-Insert | Clear and remove single line from history |
| Shift-Delete | Delete character directly under cursor |
| Ctrl-Delete | Clear line and erase entire history |
| Cursor Up | Cycle backwards through previous commands |
| Cursor Down | Cycle forwards through previous commands |
| Cursor Left | Move cursor one character to the left |
| Cursor Right | Move cursor one character to the right |
| Shift-Cursor Left | Move cursor to end of previous word |
| Shift-Cursor Right | Move cursor to start of next word |
| Ctrl-Cursor Up | Recall the oldest previous command |
| Ctrl-Cursor Down | Recall the newest previous command |
| Ctrl-Cursor Left | Move cursor to start of line |
| Ctrl-Cursor Right | Move cursor to end of line |
| Backspace or Ctrl-H | Identical to Delete |
| Ctrl-J or Ctrl-M | Identical to Return |
| Ctrl-U | Clear entire line |
| ~<substring> | recalls command whose start uniquely matches <substring> |
Substring Recall
You can recall a command, providing the start of the command matches <substring>
For example, if the following commands were used previously:
*Help Commands
*Mount 0
*Info *
PRINT"HELLO"
~<substring> can recall as follows:
~P will recall PRINT"HELLO"
~*M will recall *Mount 0
~*h will recall *Help Commands because the system is case insensitive
If there is no recall match when RETURN is pressed, then the leading tildes are stripped off and the command is executed as if the tildes weren't specified.