Re: proposal: alternative psql commands quit and exit

Поиск
Список
Период
Сортировка
От Geoff Winkless
Тема Re: proposal: alternative psql commands quit and exit
Дата
Msg-id CAEzk6ffPJdsjY2wsrFiSPQLq+vy6t=DZ89g_bp==KJXY1SF9FA@mail.gmail.com
обсуждение исходный текст
Ответ на Re: proposal: alternative psql commands quit and exit  (Geoff Winkless <pgsqladmin@geoff.dj>)
Список 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

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Ildar Musin
Дата:
Сообщение: Re: General purpose hashing func in pgbench
Следующее
От: Peter Geoghegan
Дата:
Сообщение: Re: PostgreSQL crashes with SIGSEGV