Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Junk/special characters in saved file #27

Open
madhusudhanarya opened this issue Oct 15, 2021 · 5 comments
Open

Junk/special characters in saved file #27

madhusudhanarya opened this issue Oct 15, 2021 · 5 comments

Comments

@madhusudhanarya
Copy link

madhusudhanarya commented Oct 15, 2021

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?

@renraw
Copy link

renraw commented Mar 17, 2022

same here

@renraw
Copy link

renraw commented Mar 17, 2022

putty has an option called Printable output that corrects that same issue

@heyjoke
Copy link

heyjoke commented Apr 14, 2022

@madhusudhanarya same issue for me, I am using 1.0.174, have you fixed it?

@LorenAmelang
Copy link

I'd really appreciate an option to strip out these formatting chars!

@4mig4
Copy link

4mig4 commented Nov 13, 2023

These are ANSI escape codes and yes they should be cleaned from string before outputting to the log file.
I have a same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants