Nessesarius / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Session logging à la putty for all outputs or printable outputs #279

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice to have session logging options. I copy many lines of outputs 
all the time and it is easier to just set a destination file for output just 
like in putty.

Original issue reported on code.google.com by slack...@gmail.com on 14 Jul 2011 at 3:46

GoogleCodeExporter commented 8 years ago
Have a look at the '--log' command line option or the 'Log' config file option.

Original comment by andy.koppe on 14 Jul 2011 at 6:13

GoogleCodeExporter commented 8 years ago
i tried the --log.. but the output is messy. I always have mintty up and 
running. I do not always want to have all outputs logged unless i want to 
specify it. Is it possible to mimic Putty session logging? Enable it when 
needed and only output printable characters?

Original comment by slack...@gmail.com on 14 Jul 2011 at 7:30

GoogleCodeExporter commented 8 years ago
Here's a toolbox to pick and choose from that will hopefully enable you to do 
what you want:

- The scrollback buffer. Select all, paste into a text editor, and process it 
there.
- The aforementioned '--log' option.
- The 'tee' utility for copying non-interactive output into a file.
- The 'script' utility for logging interactive sessions on demand.
- 'cat -v' or 'less' for displaying control characters in the log in caret 
notation.
- Filtering out control sequences. Here's a comprehensive-looking perl script 
for doing that:
http://unix.stackexchange.com/questions/14684/removing-control-chars-including-c
onsole-codes-colours-from-script-output/14707#14707

KDE Konsole and Gnome Terminal don't have any logging support, so I'm happy to 
leave mintty's as-is.

Original comment by andy.koppe on 17 Jul 2011 at 10:00