Forum Discussion

EnTerr's avatar
EnTerr
Roku Guru
10 years ago

Command line Editing in Console?

Working in the Roku console ("BrightScript Debugger>" prompt) is quite tedious if it has to be done for a long time. In particular i am missing the ability to recall previous commands and edit them. The only thing i know to work is Backspace (am i missing some other keys?).

Can we please have some better, basic editing of the command line? Pretty please (with Zucker on top). All i personally long for are:
  • Left/Right arrows to edit current line

  • Up/Down arrows to recall previous lines

  • ... and that's it!

Isn't there some unix library for that already? I see the name "Readline" thrown around. If - as i suspect - the issue is that it is GPL-infected, well there are alternatives - for example this https://github.com/antirez/linenoise both has a permissive license and is 20x smaller.


PS. on a side note, last century called and they want their COMMAND.COM back: http://sdkdocs.roku.com/pages/diffpages ... Id=3737101 - this side of the millennium, Windows shell is CMD.EXE. Apology for the nit-picking but as a recovering MCSE this rubs me the wrong way