script-server
script-server copied to clipboard
Allow the use of an editor inside a script
It would be possible to allow the use of an editor inside a script? Ideal would be midnight commander, but also nano would be enough.
Hi @hifi25nl, this would require complete refactoring of output window and how Script server grabs user input :( At the moment, it's a view-only mode, with the text appending and unlimited scroll. For the editor, the output should be fixed to the terminal size, scrolling should be prohibited and hotkeys should be enabled (which might not be possible for a browser)
However, it might be possible that script server would provide a simple editor in a separate window, using HTML text area. Could you describe the use case please? Are users asked for the edit in the middle of script execution?
Both cases: in the middle after selecting a script option or a simple direct call to the editor. A separate window could be enough.
I would like, if possible, to have the editor implemented using an HTML textarea. I'm trying to migrate from the commands module in Webmin (that I currently use), and this would be greatly appreciated. Thank you very much.