ASCII colors in MOTD

Wayne Davison wayned at
Thu Jul 6 17:01:57 GMT 2006

On Thu, Jul 06, 2006 at 10:01:22PM +0900, Kalin KOZHUHAROV wrote:
> AFAIR, this escaping was intended only for filenames, right?

It affects all messages these days because filenames can occur embedded
in all sorts of messages and only the client side can determine which
multi-byte sequences are valid to output (so the server side can't do
the escaping when it inserts the names).

> And BTW, adding -8 does not change anything.

Correct -- rsync always escapes control characters, regardless of -8.

It would be possible to disable some of the escaping when the client is
displaying the MOTD, but I'm inclined to leave it alone because (1) it
is safer to not allow a remote system to mess with your screen, and (2)
not all terminals use the same escape sequences.


More information about the rsync mailing list