Iterate over last used Terminal commands
Egon Rath (2225) 54 posts |
Hello, is there any way to iterate over the last used terminal inputs (like the bash history or cursor up/down in windows). Thanks, |
GavinWraith (26) 1563 posts |
No. There is no commandline history mechanism built into RISC OS, AFAIK. You could try building one ;). The commandline has only played a vestigial role in RISC OS. The emphasis has always been on the GUI. One may occasionally interactively enter a command at the * prompt in a taskwindow, but, for me at least, the usual procedure is to use a texteditor to put commands into an Obeyfile. The RISC OS command language is rather primitive compared to the likes of bash. I generally use RiscLua scripts if I need to do bash-like things. |
Jeff Doggett (257) 234 posts |
Yes, you need the line editor module. |
Egon Rath (2225) 54 posts |
Hello Jeff, |
Ronald May (387) 407 posts |
Click on !Boot then the Boot icon will take you to some options. You need to ‘Run at startup’ the LineEditor module. One advantage with this method is that you can keep any system additions in a named directory that you can take with you when migrating to a new installation. |
patric aristide (434) 418 posts |
I can’t remember installing it so I’d assume it came with !zap. Mine lives in: !Zap.Code.Extensions.LineEditor.LineEditor I do however “run Zap at startup” (via !Configure options as Ronald pointed out). Apart from having a decent editor available this also means that TaskWindow automatically uses !Zap instead of the rather limited !Edit |
Egon Rath (2225) 54 posts |
Hello, |