Open hack-char opened 1 year ago
I worked with pipe-pane and the output was awful. Some day I wrote a little Asciinema wrapper to record all my sessions. That works quite good 😊
Thank you so much hack-char. Spent the past 3 hours stuck on this issue, and your solution worked. Thought I was going to lose my mind!
I'm also using Kali Linux and had additional problems with backspace characters in my log. So I also installed colorized-logs
and replaced the pipe_pane_sed()
function in ~/.tmux/plugins/tmux-logging/scripts/start_logging.sh
with:
pipe_pane_sed() {
tmux pipe-pane "exec cat - | ansi2txt | col -b >> $FILE"
}
Now my logs look great. Thanks for your input @hack-char!
I am using Kali rolling, and the default ansi and control code filtering doesn't seem to work well. Doing the following seems to provide the best log review experience: Do not install ansi-filter Comment out the sed line trying to remove ansi/control codes in .tmux/plugins/tmux-logging/scripts/start_logging.sh
To review log files use 'ansi2txt' (from 'colorized-logs' package):
this leaves a few things like '^M' and '^G' in the display, but makes the log more understandable and complete in my opinion Might be best to incorporate ansi2txt into start_logging.sh but I haven't tried that