I've run plenty of commands on my terminal, their results are displayed on it.
It's time I'm willing to search among what is written, without re-running the commands that produced these results.
Only by doing a grep on the current console content.
Does a way exist to do so ?
if, for exemple, this is displayed in my console:
Hello !
ERROR: bad argument: -2
Wait... Retry...
with other pages before (accessible by page up key), how do I grep it?
grep
on it. If the terminal application saves it, then you will have to investigate whether your terminal supports accessing that buffer somehow. You have not mentioned whether you are using a graphical terminal or not (although theconsole
tag possibly implies that you don't).exec
before you run your commands) to some file and to the same terminal too (and when you need grep something you can do it in your file)M-x shell
in Emacs really shines. There are some corner cases where it works poorly but in general, it works surprisingly well. Of course, you have to run the terminal inside Emacs in the first place to reap the benefits.