I run a python script on
konsole to print long logging for few hours, then I realized I want to save its output with color, but it's too late to run either
screen -L to save the output as color text by keeping ANSI escape code.
I tried this trick but no luck, i.e.
LD_PRELOAD=./libisatty.so xclip -o -selection clipboard > midnight.log
Is it possible select existing terminal session and save its existing output with ANSI escape code ?