unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Michael Mauger <mmaug@yahoo.com>
Subject: Re: Prompt display in Panther build
Date: Sat, 1 Nov 2003 13:09:55 -0800 (PST)	[thread overview]
Message-ID: <20031101210955.48652.qmail@web60306.mail.yahoo.com> (raw)

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

             reply	other threads:[~2003-11-01 21:09 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-11-01 21:09 Michael Mauger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2003-10-31 18:17 Prompt display in Panther build Michael Mauger
2003-10-30 16:17 Matt Tenenbaum
2003-10-31 12:28 ` Benjamin Riefenstahl
2003-10-31 16:46   ` Andrew Choi

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20031101210955.48652.qmail@web60306.mail.yahoo.com \
    --to=mmaug@yahoo.com \
    /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.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).