Open madhusudhanarya opened 3 years ago
same here
putty has an option called Printable output that corrects that same issue
@madhusudhanarya same issue for me, I am using 1.0.174, have you fixed it?
I'd really appreciate an option to strip out these formatting chars!
These are ANSI escape codes and yes they should be cleaned from string before outputting to the log file. I have a same issue
i have configured auto-save of the SSH terminal output to the file. When i check saved file, i see junk/special characters. Below is the snippet from the output file. you can see most of the strings are prefixed with ;5;27m and some has <0x07> or <0x1b>]0;
<0x1b>]0;root@linux1:~<0x07>[root@linux1 ~]# cd /tmp/ <0x1b>]0;root@linux1:/tmp<0x07>[root@linux1 tmp]# ls -ltr total 144 drwxrwx--- 5 root mobile 4096 Feb 6 2020 ;5;27mmnt drwx------ 2 root root 4096 Oct 3 09:45 ;5;27mpymp-rxus9z03 drwx------ 3 root root 4096 Oct 3 12:37 ;5;27msystemd-private-da67a60f646c4c3ea7ec9ca3bcd406b8-vgauthd.service-w9rzVs drwx------ 3 root root 4096 Oct 3 12:37 ;5;27msystemd-private-da67a60f646c4c3ea7ec9ca3bcd406b8-vmtoolsd.service-UzNWJ1 drwx------ 3 root root 4096 Oct 3 12:37 ;5;27msystemd-private-da67a60f646c4c3ea7ec9ca3bcd406b8-rh-php73-php-fpm.service-KjElPt drwx------ 3 root root 4096 Oct 3 12:37 ;5;27msystemd-private-da67a60f646c4c3ea7ec9ca3bcd406b8-httpd.service-YV17p6 drwx------ 3 root root 4096 Oct 3 12:37 ;5;27msystemd-private-da67a60f646c4c3ea7ec9ca3bcd406b8-ypbind.service-oHhI2I drwx------ 3 root root 4096 Oct 3 12:38 ;5;27msystemd-private-da67a60f646c4c3ea7ec9ca3bcd406b8-ntpd.service-KrcPFu -rw------- 1 arprasad tape 3809 Oct 7 15:39 krb5cc_15557_a0Se9S -rw------- 1 macharya tape 3473 Oct 15 21:55 krb5cc_15558_6COJGi <0x1b>]0;root@linux1:/tmp<0x07>[root@linux1 tmp]# what could be the issue here?