Skip to content

diary

builtin · libnexusinterp/corefcn/pager-proprietary.cc

: diary
: diary on
: diary off
: diary filename
: [status, file] = diary

Record the text of the session in a file.

Without arguments logging is toggled; diary on and diary off set it explicitly, and any other word is taken as the name of the file to log to (default diary) and starts logging there. With output arguments the current state is returned: status is true while logging and file is the file name.