| From: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
|---|---|
| To: | pgsql-hackers(at)postgresql(dot)org |
| Cc: | Bruce Momjian <bruce(at)momjian(dot)us>, Aidan Van Dyk <aidan(at)highrise(dot)ca>, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Gregory Stark <stark(at)enterprisedb(dot)com>, Brendan Jurd <direvus(at)gmail(dot)com>, Bryce Nesbitt <bryce2(at)obviously(dot)com>, heikki(at)enterprisedb(dot)com |
| Subject: | Re: Proposed patch - psql wraps at window width |
| Date: | 2008-04-24 20:23:22 |
| Message-ID: | 200804242223.25671.peter_e@gmx.net |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers pgsql-patches |
Bruce Momjian wrote:
> Greg's suggestion is to use $COLUMNS if the width can't be determined
> because the output is not directly to the screen. $COLUMNS is updated
> by many shells.
I think it is best not to look at $COLUMNS at all. If the output is to a
terminal, then use ioctl to query the terminal. And provide a \pset command
to set a width explicitly, which can apply in all cases.
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2008-04-24 20:29:16 | pgsql: Update: < * Allow adding enumerated values to an existing |
| Previous Message | Peter Eisentraut | 2008-04-24 20:19:52 | Re: Proposed patch - psql wraps at window width |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Bruce Momjian | 2008-04-24 20:32:17 | Re: Proposed patch - psql wraps at window width |
| Previous Message | Peter Eisentraut | 2008-04-24 20:19:52 | Re: Proposed patch - psql wraps at window width |