fugazi-io / webclient

web based terminal application for executing local and remote commands
http://fugazi.io
28 stars 12 forks source link

input multiline support #115

Closed nitzantomer closed 6 years ago

nitzantomer commented 6 years ago

This is now working as described in the issue, when pressing enter when within a string, otherwise when \ or shift+enter.
When in a "multiline mode" the up/down arrows behave as you'd expect, instead of changing the input based on the history, until you reach the top line (and press up) or the bottom line (and press down).

I also made some formatting changes and a few other irrelevant changes as I had to change some files I haven't had the chance to change for a while.

Notice that the only part that was changed was the input part, the output will still show the actual command and the result in single lines. It shouldn't be hard to change the way the output reacts to line breaks, I'm just not sure what's the right (expected?) behavior.

Any thoughts?