Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Looks like "zpty -r" is adding 0x0d characters...



A pty opened with zpty is just like any other tty device, i.e., it
has various settings that can be viewed and changed with "stty".
The values of those settings do not necessarily correspond to those
of the controlling tty of the process.

For example, try:

    zpty settings stty -a
    zpty -r settings

You'll probably find "onlcr" in that output, which means "for output,
translate newline to carriage return-newline".

If you don't want this to happen, the program that zpty runs on the
pseudo-terminal needs to do the equivalent of "stty -onlcr".



Messages sorted by: Reverse Date, Date, Thread, Author