From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Michael Mauger Newsgroups: gmane.emacs.devel Subject: Re: Prompt display in Panther build Date: Sat, 1 Nov 2003 13:09:55 -0800 (PST) Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20031101210955.48652.qmail@web60306.mail.yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1067745721 14439 80.91.224.253 (2 Nov 2003 04:02:01 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 2 Nov 2003 04:02:01 +0000 (UTC) Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Nov 02 05:01:59 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AG9R9-0001dB-00 for ; Sun, 02 Nov 2003 05:01:59 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1AG9R9-0000ND-00 for ; Sun, 02 Nov 2003 05:01:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AG9MR-0000ID-OT for emacs-devel@quimby.gnus.org; Sat, 01 Nov 2003 22:57:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1AG9BJ-000781-58 for emacs-devel@gnu.org; Sat, 01 Nov 2003 22:45:37 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1AG3uQ-000435-7Z for emacs-devel@gnu.org; Sat, 01 Nov 2003 17:08:21 -0500 Original-Received: from [216.109.118.117] (helo=web60306.mail.yahoo.com) by monty-python.gnu.org with smtp (Exim 4.24) id 1AG30O-0005L0-Po for emacs-devel@gnu.org; Sat, 01 Nov 2003 16:09:56 -0500 Original-Received: from [12.91.3.7] by web60306.mail.yahoo.com via HTTP; Sat, 01 Nov 2003 13:09:55 PST Original-To: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17648 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17648 Andrew Choi writes: >> There are (or at least there used to be) problems with pseudo-ttys >> (ptys) on Mac OS X, therefore ptys are disabled for some (all?) >> operations. I think the variable process-connection-type controls >> this, so you could try to tweak that. > > I believe the pty problem has been fixed in Panther/Darwin 7.0 (unless > someone can tell me otherwise). > > If behavior differs in terminal and GUI mode, perhaps it is useful to > check environment variable settings passed to `psql' that are different > in the two cases (value of process-environment). Also you may want to > check what arguments are used when psql is called (by stopping at > start-process (?)) in both cases. I did some further checking on this issue. The prompt is suppressed in psql if isatty(fileno(stdin)) or isatty(fileno(stdout)) return false. If there are in fact issues with pty support under Mac OS X that would explain the problem. I also did some checking under Windows where there is no native pty support. Even though psql is a cygwin app, Emacs isn't, so psql doesn't detect it's tty state properly (and never will, probably). I have submitted a small patch to the Postgres team for the psql processor to support a command line option that will assume that the processor is running on a tty even if the environment says it isn't. If and when this patch is accepted and released it will be possible to customize sql-postgres-options to add this new option when psql is invoked. -- Michael __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com