5 ms·
You just need two text areas: one at the top where you enter text, and one at the bottom where the scrolling happens. This is not rocket science, but I'm sure i
by to3m 10y ago
You just need two text areas: one at the top where you enter text, and one at the bottom where the scrolling happens. This is not rocket science, but I'm sure it's actually literally impossible in Unix, which in general has never moved on from the idea that a computer's primary output device is a printer printing on an endless roll of paper.
- lallysingh 10y agoSure you can, just use (n)curses.
- to3m 10y agoDoes that work with the scrollback? If it's supposed to, I've yet to see it ever happen!
- dTal 10y agoHave a look at bpython.
- to3m 10y agoI'll try it when I get a moment, but I'll take your word for it for now. From the screenshots it looks to me very much like it'll be a single scrolling viewport, though, with a line of input at the end. So, at heart, differing in some of the details, but no more than a few, a printer printing on a long roll of paper...
- dTal 10y agoWell, yes, it doesn't attempt to modify the semantics of the terminal - the opposite, in fact. I brought it up as an example of something that uses curses for all kinds of fancy stuff, but integrates with the terminal's normal scrollback. Sorry for any misunderstanding.
- coldtea 10y ago>So, at heart, differing in some of the details, but no more than a few, a printer printing on a long roll of paper... The responses of commands are "long rolls of digital paper". They could be from 1 to millions of lines long. So what exactly would your solution do differently? And it's not "unix" that does it this way, it's VMS, Windows, and pretty much everybody. In fact your concept is still not concrete enough to make sense. The browser can have a single address bar on top, because urls are a single string -- and they also don't interact with subsequent contents, commands, etc.
- marcosdumay 10y agoHum... Say you have an interactive command that takes a "y" keystroke. 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.