Filtering remote control-characters

Filtering remote control-characters

Post by Tim Hutcheso » Wed, 28 Apr 1999 04:00:00

How do I setup my remote login to linux, from a PC telnet session, so that
control characters from linux host don't flip my screen into reverse video,
such as happens with emacs, vi or joe?

Tim Hutcheson


1. How to filter out control characters (^M) in unix file using VI or VIM


Is there a slick way of editing out control characters, specifically
^M, using VI or VIM?  The background is that I edited some files in
Windows using Wordpad, and I believe it added ^M to the end of each
line, and now my scripts don't work in unix on some computers (yet on
others it does!!!).  I've edit files on wordpad and transplanted them
to unix with no problem before.  But now this is problem.  I'm
assuming it's the added control characters that are the problem.
Please advise!  Also, if anyone can recommend a good VI/ VIM/ Unix
cookbook that helps in these areas, that would be great.  Thanks in

Kevin R.

2. XCheckMaskEvent() causes memory leak ?

3. need lpr filter to handle F77 carriage control characters

4. Problem with stdin

5. filter esc / control characters to text only printer

6. How to allow some users to run Modem Dial-Up script?

7. ibm2asc Filter 8-bit Scandinavian characters to 7-bit characters

8. SP question

9. WANTED: Control-characters for ANSI-Terminals

10. echoing control-characters from the command-line

11. Remote control of a linux box (using IR remote mainly for multimedia)?

12. Filters, Filters, where are you Filters...

13. Command to filter alph characters