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

Re: This is probably known and wont-fix: zpty -w always adds a new line



On Wed, 2018-11-07 at 12:01 +0000, Peter Stephenson wrote:
> If you don't give a write argument to zpty -w, so it's getting it from
> reading stdin, it'll ignore the -n argument, but that's probably
> obvious.

While I'm here...

pws

diff --git a/Doc/Zsh/mod_zpty.yo b/Doc/Zsh/mod_zpty.yo
index 44b375a..6f20c4b 100644
--- a/Doc/Zsh/mod_zpty.yo
+++ b/Doc/Zsh/mod_zpty.yo
@@ -41,7 +41,8 @@ em(not) given, a newline is added at the end.
 
 If no var(string) is provided, the standard input is copied to the
 pseudo-terminal; this may stop before copying the full input if the
-pseudo-terminal is non-blocking.
+pseudo-terminal is non-blocking.  The exact input is always copied:
+the tt(-n) option is not applied.
 
 Note that the command under the pseudo-terminal sees this input as if it
 were typed, so beware when sending special tty driver characters such as



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