From: "Andrej Borsenkow" <borsenkow.msk@sni.de>
To: "Helmut Jarausch" <jarausch@numa1.igpm.rwth-aachen.de>,
<zsh-workers@sunsite.auc.dk>
Subject: RE: Debug / cut'n'paste on IRIX
Date: Fri, 12 Mar 1999 12:40:57 +0300 [thread overview]
Message-ID: <000f01be6c6c$6e4388a0$21c9ca95@mowp.siemens.ru> (raw)
> Aha! This sounds the hell like FIONREAD problem (typeahed is lost).
>
> Folks, what happens, when ZSH outputs PS2? What I mean is:
>
> if I simply have typeahead and ZSH returns to PS1, it (if
> configured - my case) explicitly uses FIONREAD to check for
> typeahead before changing tty modes.
>
> Does it do the same for PS2? Does it change tty modes in this
> case? If yes, is it using FIONREAD?
>
that's what happens. I could not find the relevatnt part in sources -
anybody (Geoff) - could you get a look:
This was for
for i in 1 2 3 4 5
do
bla bla bla
done
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.
9845: read(10, " 5", 1) = 1
9845: write(10, " 5", 1) = 1
9845: read(10, "\n", 1) = 1
9845: poll(0x000000FFFFFEC768, 1, 0) = 1
9845: write(10, "\r\n", 2) = 2
9845: ioctl(10, TCGETA, 0x000000FFFFFEE6E4) = 0
9845: ioctl(10, TCSETSW, 0x00000000004C1620) = 0
9845: alarm(0) = 0
9845: sigaction(SIGINT, 0x000000FFFFFEE528, 0x0000000000000000) = 0
9845: ioctl(10, FIONREAD, 0x000000FFFFFEE454) = 0
9845: ioctl(10, TIOCGSID, 0x000000FFFFFEE394) = 0
9845: getsid(0) = 7682
9845: ioctl(10, TIOCSPGRP, 0x000000FFFFFEE3DC) = 0
9845: ioctl(10, TCGETA, 0x000000FFFFFEE394) = 0
9845: ioctl(10, TCSETSW, 0x000000FFFFFEE458) = 0
9845: write(10, 0x00000000004BC8C0, 26) = 26
9845: \r1B [ 0 m1B [ 2 2 ; 2 7 m1B [ 2 4 m1B [ J f o r >
9845: write(10, "1B [ K", 3) = 3
9845: read(10, 0x000000FFFFFEE474, 1) (sleeping...)
9
next reply other threads:[~1999-03-12 9:43 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-12 9:40 Andrej Borsenkow [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-03-12 10:21 Andrej Borsenkow
1999-03-12 10:34 ` Peter Stephenson
1999-03-12 14:33 ` Geoff Wing
1999-03-12 9:04 Helmut Jarausch
1999-03-12 9:20 ` Andrej Borsenkow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000f01be6c6c$6e4388a0$21c9ca95@mowp.siemens.ru' \
--to=borsenkow.msk@sni.de \
--cc=jarausch@numa1.igpm.rwth-aachen.de \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).