| From: | Michael Mauger <mmaug(at)yahoo(dot)com> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Subject: | Proposal: psql force prompting on notty |
| Date: | 2003-11-01 06:51:44 |
| Message-ID: | 20031101065144.28680.qmail@web60305.mail.yahoo.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches |
I'm the maintainer of sql.el in GNU Emacs. On both the Mac OS X
and the Windows/Cygwin platform we've had reports that psql run
under Emacs does not issue a prompt for commands.
I did a little research and it appears that the cause is that
pset.notty is being set to false because stdin/stdout are not
a tty (pgsql-server/src/bin/psql/startup.c). I'd like to
propose that an option be added to the psql command line to
override the detection of the tty and force the prompting for
commands on stdin.
I believe the attached patch should add the option -I to psql
and force the prompt to appear as if it were an interactive
session regardless of the state of stdin/stdout. I do not
have a configuration available to properly test this however.
Please be sure to include me in any replies since I do not
subscribe to this list. TIA.
-- Michael
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
| Attachment | Content-Type | Size |
|---|---|---|
| interactive.diff | text/plain | 1.6 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Richard Schilling | 2003-11-01 09:49:45 | Re: postmaster startup failure |
| Previous Message | Tom Lane | 2003-11-01 05:19:22 | Re: OSDL DBT-2 w/ PostgreSQL 7.3.4 and 7.4beta5 |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Claudio Natoli | 2003-11-01 08:42:21 | Other Win32 TODO items? |
| Previous Message | Larry Rosenman | 2003-10-31 23:22:33 | Re: UnixWare UP3 compiler detection patch |