From: | Geoff Winkless <pgsqladmin(at)geoff(dot)dj> |
---|---|
To: | Geoff Winkless <pgsqladmin(at)geoff(dot)dj> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Chapman Flack <chap(at)anastigmatix(dot)net>, Robert Haas <robertmhaas(at)gmail(dot)com>, Laurenz Albe <laurenz(dot)albe(at)cybertec(dot)at>, Everaldo Canuto <everaldo(dot)canuto(at)gmail(dot)com>, Vik Fearing <vik(dot)fearing(at)2ndquadrant(dot)com>, Stephen Frost <sfrost(at)snowman(dot)net>, Alvaro Herrera <alvherre(at)alvh(dot)no-ip(dot)org>, Pg Hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: proposal: alternative psql commands quit and exit |
Date: | 2018-01-17 20:18:46 |
Message-ID: | CAEzk6ffPJdsjY2wsrFiSPQLq+vy6t=DZ89g_bp==KJXY1SF9FA@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On 17 January 2018 at 15:00, I wrote:
> Ctrl-C quits immediately for me no matter what input stage I'm at in
> Windows' psql. Ctrl-Z (DOS EOF) only quits after enter is pressed and
> only at beginning-of-line, so I'd say suggesting the user uses Ctrl-C
> in windows makes sense. ^D doesn't appear to be a special character at
> all.
My suggestion would be that, since the user has just typed exit<CR> or
quit<CR> then writing (on *nix) "Press [[EOFKEY]] on a blank input line to
exit" (where [[EOFKEY]] is taken from tcgetattr()'s VEOF value) is
sufficient, because the user will already have a blank line in front of
them so the immediate instruction ("Press Ctrl-D") will work and if they
bother to read further they will remember the further instruction for next
time; the simpler "Press Ctrl-C to exit" should be sufficient for Windows.
Geoff
From | Date | Subject | |
---|---|---|---|
Next Message | Peter Geoghegan | 2018-01-17 20:19:50 | Re: PostgreSQL crashes with SIGSEGV |
Previous Message | Ildar Musin | 2018-01-17 20:17:45 | Re: General purpose hashing func in pgbench |