Thanks, I am aware of the history-based completion/choice in the command line, which is great and am using it regularly (I frequently use a basic command/statement that serves as the prefix of many more complicated and longer commands, so it is a really useful feature to me).
However, what I was asking for is searching the whole console including the output; The sequence of commands followed by their output, and very often I'm looking for a particular statement that generated an output with some information/data I care about, and would like to either look at the output, or the command that generated it --- especially if I cannot reproduce and see the same data again (e.g. see something else showing as if a problem was gone or introduce). So the sequence and output matters here. (The feature I refer to is similar to what you have when using a code editor like emacs both as the source editor and to run the the program (sometimes in a different tab/pane); another example are various shell terminals that you can search in (e.g. iTerm2)).
As an aside, w.r.t the history completion with Ctrl+Up: note that it is only based on the prefix search, not full content search, so it definitely happened to me that the same statement with only the difference that one started with parenthesis and the other didn't was not matched with this mechanism; I use the History pane though in case that I don't find the command that I want because the prefix is different, so the prefix only command search is still very useful, even without the partial command search. The main part that I lack is the ability to search the output, or more precisely the sequence of statements followed by their output.
Thanks