So you can rewrite terminal output (really? I know people like rewriting history in git but in you terminal?) and emulate `echo`?
The point in these examples is that it is often very useful to be able to reuse the previous output to craft another command, or to work in a more iterative way by massaging the text and getting feedback along the way.
Re:The Hyper Plan
by bobwaycott on Thursday October 06, 2016 @08:20PM
(#12657236)
Isn't that what the pipe operator is for?
True, the classic shell tools like the pipe can do a lot of this. But there are important differences. Firstly, to use the pipe you need to know in advance which output you want to keep/capture when you run the command. (e.g. by redirecting into a tmp file or using a pipe directly.) In this terminal you can decide afterwards if you want to do something else with previous output.
Another difference is that this works across tabs, sessions and machines, but the classic pipe doesn't.
It makes your interactive shell a lot more interactive. Classic pipes etc still work as expected too, so you are feel to mix and match.
It could, for example let you operate and reuse the text it just displayed:
https://raw.githubusercontent.com/sedwards2009/extraterm/mas...
or even provide a command to let you reuse previous output, such as here:
https://raw.githubusercontent.com/sedwards2009/extraterm/mas...
More information and an implementation can be found here:
https://github.com/sedwards2009/extraterm/blob/master/docs/t...