zsh-workers
 help / color / mirror / code / Atom feed
* RE: Debug / cut'n'paste on IRIX
@ 1999-03-12 10:21 Andrej Borsenkow
  1999-03-12 10:34 ` Peter Stephenson
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Andrej Borsenkow @ 1999-03-12 10:21 UTC (permalink / raw)
  To: Helmut Jarausch, zsh-workers

[I am sorry for all these mails]

>
> that's what happens. I could not find the relevant part in
> sources - anybody (Geoff) - could you get a look:
>
> Cut'n'pasted in another shell. As you see, after it gets first
> new line it does ioctl(10, TCSETSW,...) before PS2, that,
> unfortunately, throughs away all pending input :-( The following
> FIONREAD is useless in this case.
>


Looks, like it is done in settyinfo(), that is (unconditionally) called from
trashzle() that is called from zleread() after we've seen new line. (It is
actually using tcsetattr() on our system)

Fixing it is probably not trivial. Currently, the only place where FIONREAD
is used is setupterm(). If we find typeahed, we avoid calling sttyinfo() at
all. May be, we should come up with a single function that checks for
typeahead, reads it in buffer and changes tty modes after that?

And I wonder, if this is all ... We already had (still unresolved) case with
read -q ...

/andrej


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~1999-03-15  9:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-03-12 10:21 Debug / cut'n'paste on IRIX Andrej Borsenkow
1999-03-12 10:34 ` Peter Stephenson
1999-03-12 14:02 ` PATCH: " Peter Stephenson
1999-03-15  8:19   ` Andrej Borsenkow
1999-03-15  9:38     ` PATCH: 3.1.5-pws-12: configuration changes Peter Stephenson
1999-03-12 14:33 ` Debug / cut'n'paste on IRIX Geoff Wing
1999-03-15  9:31   ` up-line-or-history and multiline input (was: RE: Debug / cut'n'paste on IRIX) Andrej Borsenkow

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).