The attached patch applied with patch -p1 < repl.patch inside of the svn64x dir applies code that adds functionality to the repl in linux operating systems.
I have only tested it in Lubuntu 26.04 and 24.04.
It provides history scrolled with the up/down arrows, as well as multi-line navigation using the arrow keys. It also provides the following shortcuts:
| Keys | Action |
|---|---|
| Left / Right, Ctrl-B / Ctrl-F | Move cursor by one character |
| Home, Ctrl-A | Start of line |
| End, Ctrl-E | End of line |
| Backspace, Ctrl-H | Delete character before cursor |
| Delete, Ctrl-D | Delete character at cursor (on an empty buffer: exit CLIPS, like other REPLs) |
| Ctrl-K | Kill to end of row (at row end: join with next row) |
| Ctrl-U | Kill the entire buffer |
| Ctrl-W | Kill the previous word, never crossing a row boundary (at row start: join with previous row) |
| Ctrl-L | Clear screen and redraw the line |
| Ctrl-C | Discard the line (and any command in progress), halt, fresh prompt |