>>>>> On Tue, 26 Jan 2016 07:18:26 -0800 (PST), Sebastian Nowozin said:
> for a non-programmatic way to do that (i.e. to record a single > session) you can use the "screen" utility for that. In our shell, > run screen, then press ctrl-a H, and then run Julia. The file is > created in the directory you started screen in, and named screenlog.0 [This is a digression that is not related to julia.] Thanks for the suggestion. My question was actually prompted by the nuisance in GNU screen that the "hardcopy" command (normally C-a h) produces unwanted newlines in the output file when there are line wraps. The "log" command (C-a H) doesn't do that, but it includes terminal control sequences in the output file. I have a perl script that removes the terminal control sequences, but it does not satisfactorily handle situations like zsh's bck-i-search or the julia REPL's reverse-i-search. (If anyone can suggest a solution for that, I would be grateful.) This might prove to be the impetus for me to finally switch from screen to tmux, whose capture-pane command joins the wrapped lines when invoked with the -J argument.
