This is probably a long shot but it would be really handy if there is a solution. I am logged in on a work computer I currently cannot access. I know the output of a long running job I previously started is on an iTerm2 window.
I have SSH access to the machine and I would like to read the contents of that window. Is there, e.g., a file where iTerm2 backs up session output? Or any other way to read the content of an open window? Obviously it's too late to select any specific session logging options. Usually after a forced restart, the iTerm2 window will restore the previous output so I presume it is saved somewhere.