Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)

From: Ed Avis <eda(at)waniasset(dot)com>
To: "'bruce(at)momjian(dot)us'" <bruce(at)momjian(dot)us>
Cc: "'tgl(at)sss(dot)pgh(dot)pa(dot)us'" <tgl(at)sss(dot)pgh(dot)pa(dot)us>, "'pgsql-bugs(at)postgresql(dot)org'" <pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
Date: 2014-12-05 18:37:47
Message-ID: 7E039918541B4C4183BFDB8F015C74302E43107B@WCL-EXCH02.wcl.local
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

>Many shell scripts run from cron have a 'dumb' terminal value.

And these scripts should output directly and not run a pager -- so matching what is being suggested for 'dumb'.

In fact they already run without pager because their stdout is not a tty. What is being discussed here is what psql should do when it is writing to a tty, so interactive in some sense, but with TERM=dumb. Decades ago that would have meant a teleprinter terminal (or, perhaps, some ancient serial terminal or Minix 1.0). Nowadays it means running inside emacs or some other management program, so there is no need to run a pager.

______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2014-12-05 18:57:19 Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)
Previous Message 'bruce@momjian.us' 2014-12-05 18:37:41 Re: BUG #11986: psql uses pager inside Emacs shell buffer (not a terminal)