From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: ^D is broken in shell-mode Date: Wed, 09 Jun 2010 17:14:09 +0900 Message-ID: References: Reply-To: Miles Bader NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1276073102 23520 80.91.229.12 (9 Jun 2010 08:45:02 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 9 Jun 2010 08:45:02 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 09 10:45:00 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OMGuC-0007uZ-1v for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 10:45:00 +0200 Original-Received: from localhost ([127.0.0.1]:56398 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMGuB-0002sd-7k for ged-emacs-devel@m.gmane.org; Wed, 09 Jun 2010 04:44:59 -0400 Original-Received: from [140.186.70.92] (port=55144 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OMGeE-00021a-Nc for emacs-devel@gnu.org; Wed, 09 Jun 2010 04:28:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OMGW4-0002DC-OX for emacs-devel@gnu.org; Wed, 09 Jun 2010 04:20:05 -0400 Original-Received: from tyo202.gate.nec.co.jp ([202.32.8.206]:55797) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OMGQQ-0001DQ-CE; Wed, 09 Jun 2010 04:14:14 -0400 Original-Received: from mailgate4.nec.co.jp ([10.7.69.184]) by tyo202.gate.nec.co.jp (8.13.8/8.13.4) with ESMTP id o598ECXn020263; Wed, 9 Jun 2010 17:14:12 +0900 (JST) Original-Received: (from root@localhost) by mailgate4.nec.co.jp (8.11.7/3.7W-MAILGATE-NEC) id o598EC601274; Wed, 9 Jun 2010 17:14:12 +0900 (JST) Original-Received: from relay41.aps.necel.com ([10.29.19.9]) by vgate01.nec.co.jp (8.11.7/3.7W-MAILSV-NEC) with ESMTP id o598EB418732; Wed, 9 Jun 2010 17:14:11 +0900 (JST) Original-Received: from relay51.aps.necel.com ([10.29.19.24] [10.29.19.24]) by relay41.aps.necel.com with ESMTP; Wed, 9 Jun 2010 17:14:10 +0900 Original-Received: from dhlpc061 ([10.114.113.131] [10.114.113.131]) by relay51.aps.necel.com with ESMTP; Wed, 9 Jun 2010 17:14:10 +0900 Original-Received: by dhlpc061 (Postfix, from userid 31295) id 1156F52E1F3; Wed, 9 Jun 2010 17:14:10 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop In-Reply-To: (Stefan Monnier's message of "Tue, 08 Jun 2010 16:22:41 -0400") Original-Lines: 25 X-detected-operating-system: by eggs.gnu.org: Solaris 8 (1) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125664 Archived-At: Stefan Monnier writes: > 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 Xterm seems like a somewhat different case though -- it acts like a physical terminal, so just has to send raw keystrokes (including ^D, ^C, etc), which are interpreted however the slave end of the pty wants, not "high-level" events like EOF (or interrupt, etc). So ICANON (etc) may actually be set by the slave end, xterm itself doesn't have to care. > 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). Can the data just be sent in chunks, as JanD mentioned? I think support for higher-level pty control has always been kind of poor in unix, and it sounds like linux is even worse... :( -Miles -- Liberty, n. One of imagination's most precious possessions.