On Wed, Jun 17, 2015 at 04:05:56AM -0700, Hrazel wrote: > Now it would be nice just to log the last lines on stdout and walk it > through line by line ready to be put to the clipboard.
This has nothing to do with bash. You would have to request this kind of feature at the terminal level (where "terminal" could be an X terminal emulator, or a terminal multiplexer like screen or tmux). When bash runs a command, and that command writes stuff to stdout, bash is not involved in the writing. Bash does not sit as an intermediary between the command and the terminal. Bash doesn't even know whether the command wrote anything to the terminal or not, let alone what was written.