From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: standard output/error/input streams Date: Sat, 14 Jan 2017 19:51:19 +0200 Message-ID: <831sw5bkdk.fsf@gnu.org> References: <87wpdxu8yt.fsf@russet.org.uk> <838tqdbtlx.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1484416315 16064 195.159.176.226 (14 Jan 2017 17:51:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sat, 14 Jan 2017 17:51:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: phillip.lord@russet.org.uk Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 14 18:51:45 2017 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cSSUD-0001pY-5D for ged-emacs-devel@m.gmane.org; Sat, 14 Jan 2017 18:51:29 +0100 Original-Received: from localhost ([::1]:48900 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSSUH-0002fV-OT for ged-emacs-devel@m.gmane.org; Sat, 14 Jan 2017 12:51:33 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40842) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSSUB-0002fQ-Ks for emacs-devel@gnu.org; Sat, 14 Jan 2017 12:51:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cSSU6-0002is-QX for emacs-devel@gnu.org; Sat, 14 Jan 2017 12:51:27 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58592) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cSSU6-0002io-NZ; Sat, 14 Jan 2017 12:51:22 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1263 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cSSU3-0000MC-Ta; Sat, 14 Jan 2017 12:51:22 -0500 In-reply-to: <838tqdbtlx.fsf@gnu.org> (message from Eli Zaretskii on Sat, 14 Jan 2017 16:31:54 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:211290 Archived-At: > Date: Sat, 14 Jan 2017 16:31:54 +0200 > From: Eli Zaretskii > Cc: emacs-devel@gnu.org > > . getchar doesn't return until you type RET, at least on my system, > which might come as a surprise to users. One other problem with this is that until getchar returns, Emacs is stuck, and nothing runs. That's not a good thing, IMO, so I think the implementation should go via wait_reading_process_output and stuff (which will have a nice side effect of letting some other thread run while Emacs waits for input).