C-a H
log [on|off]
Start/stop writing output of the current window to a file
“screenlog.n” in the window’s default directory, where n is the
number of the current window. This filename can be changed with the
logfile
command. If no parameter is given, the state of
logging is toggled. The session log is appended to the previous contents
of the file if it already exists. The current contents and the contents
of the scrollback history are not included in the session log. Default is
“off”.
None yet.