David responded:

>This will work, the problem is trying to identify all the escape
>sequences.  Try running script then run 'ls' and then telnet to another
>device.  You will see a number of different escape sequences.

Actually, as written, it will not work.  It will replace all of the "M"
characters at the beginning of any line with nothing, i.e., delete it.
You have to have an ACTUAL control-M character in the line.

But, besides that, you are correct, the Xterm escape sequences are
tough to get rid of, since you have to also get drid of the normal ASCII
characters that are part of the escape string.  A Perl or Awk script
could accomplist that.

I'd recompile xterm and turn on the feature.

MB


>On Wed, 27 Mar 2002, Eric Wood wrote:
>
>> > I have not found an easy method of
>> > removing the characters.
>> 
>> try
>> 
>> sed -e "s/^M//" filename > newfilename
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Redhat-list mailing list
>> [EMAIL PROTECTED]
>> https://listman.redhat.com/mailman/listinfo/redhat-list
>> 
>
>
>
>_______________________________________________
>Redhat-list mailing list
>[EMAIL PROTECTED]
>https://listman.redhat.com/mailman/listinfo/redhat-list
>


-- 
e-mail: [EMAIL PROTECTED]       It is God's job to forgive bin Laden.
                                It is our job to set up the meeting.
                                    U.S. Marine Corp.
Visit - URL: http://www.vidiot.com/  (Your link to Star Trek and UPN)



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to