From: Miles Bader <miles@gnu.org>
To: Stefan Monnier <monnier@IRO.UMontreal.CA>
Cc: emacs-devel@gnu.org
Subject: Re: ^D is broken in shell-mode
Date: Wed, 09 Jun 2010 10:06:11 +0900 [thread overview]
Message-ID: <8739wxj9q4.fsf@catnip.gol.com> (raw)
In-Reply-To: <jwv1vchjn00.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Tue, 08 Jun 2010 16:22:41 -0400")
Stefan Monnier <monnier@IRO.UMontreal.CA> writes:
>> It's been a long time since I did pty programming, but I seem to recall
>> that at least in some pty states, doing a zero-length write in the pty
>> master will send an end-of-file to the slave tty. I don't recall the
>> details though...
>
> I really wish someone could help. At least if someone could point me to
> some kind of documentation that would be very helpful. The best "doc"
> I could find so far is the xterm source code, which I do not really
> understand and whose behavior I haven't been able to reproduce yet
> (e.g. it seems not to disable ICANON mode, and it doesn't seem to ever
> send EOF either, even when sending large chunks of data, yet that data
> doesn't get truncated, whereas when I try to to make Emacs send large
> amounts of data in ICANON mode without EOFs, it gets truncated).
I may be thinking of TIOCREMOTE (from the solaris man page: "In normal
usage, a write of data is like the data typed as a line on the terminal;
a write of 0 bytes is like typing an EOF character"), but unfortunately
on linux the tty_ioctl man page says: "The BSD ioctls TIOCSTOP,
TIOCSTART, TIOCUCNTL, TIOCREMOTE have not been implemented under Linux."
Still I'd think there would be some sort of equivalent functionality...
-Miles
--
Happiness, n. An agreeable sensation arising from contemplating the misery of
another.
next prev parent reply other threads:[~2010-06-09 1:06 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-08 13:16 ^D is broken in shell-mode Miles Bader
2010-06-08 14:27 ` Andreas Schwab
2010-06-08 20:22 ` Stefan Monnier
2010-06-09 0:05 ` David De La Harpe Golden
2010-06-09 1:06 ` Miles Bader [this message]
2010-06-09 6:28 ` Jan Djärv
2010-06-09 7:40 ` Stephen J. Turnbull
2010-06-09 8:14 ` Miles Bader
2010-06-09 10:53 ` Jose A. Ortega Ruiz
2010-06-10 0:38 ` Miles Bader
2010-06-10 1:52 ` Jose A. Ortega Ruiz
-- strict thread matches above, loose matches on Subject: below --
2010-06-23 15:35 Štěpán Němec
2010-06-23 18:15 ` Jose A. Ortega Ruiz
2010-06-25 12:11 ` Štěpán Němec
2010-06-25 20:01 ` Thierry Volpiatto
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=8739wxj9q4.fsf@catnip.gol.com \
--to=miles@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=monnier@IRO.UMontreal.CA \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.