by softwarelimits · 10y ago · 0 comments
Think of a browser window with the url-bar being the shell line editor. But of course I want a real, quick shell, not a clunky electron-based monster or some html based shell simulation in a browser.
I imagine that it will have a positive effect on our neck muscles if we would not have to stare at the bottom of the screen all the time, but instead at the top.
I looked into the existing pythonic shell libraries like the python-prompt-toolkit but could not figure out in a few minutes how this could be realized, so I hope some experts in this field would like to spend a few minutes on this?
Thanks for your attention!
You could reset the title on each keystroke, or even just after inputting the full command.
Does your history becomes like this:
Second result - line 1
Second result - line 2
Command prompt
y
First result - line 1
First result - line 2
Or this: First result - line 1
First result - line 2
Command prompt
y
Second result - line 1
Second result - line 2
And if it is the second option, how does it at the instants it shows the prompt, and after it gets a result?Looks complex to me.
[0] http://pastebin.com/xaLFyXtT - implementation
[1] http://www.termsys.demon.co.uk/vtansi.htm - reference for some ANSI control codes
ascii.io seems down, but there is another screencast hosted here: https://asciinema.org/a/3779
unautoclear Turn OFF clear-screen after each command.
seems difficult?