Re: Tech details - psql wraps at window width - Mailing list pgsql-hackers

From Bryce Nesbitt
Subject Re: Tech details - psql wraps at window width
Date
Msg-id 4812D4FC.8090302@obviously.com
Whole thread Raw
In response to Re: Tech details - psql wraps at window width  (Bruce Momjian <bruce@momjian.us>)
Responses Re: Tech details - psql wraps at window width  ("Brendan Jurd" <direvus@gmail.com>)
List pgsql-hackers
Bruce Momjian wrote:
> Hey, I can work with this idea. First, there really is no 'off' mode 
> for wrapped because that is aligned...
Well, come to think of it, "wrapped" is not really a new output format 
in the sense of "html" or "latex".  It could build on aligned:

\pset format aligned [autowrap|nowrap|nnn]

But there's still the issue of wanting separate defaults for tty and 
stream outputs.  The last thing you want is an admin deciding on 
wrapping, and then subtly breaking scripts.  My personal desired 
defaults are:

* Terminals autowrap.
* Streams don't wrap, except in the rare case when I want to force a 
specific width (e.g. 79 for a newsgroup posting).
                                 -Bryce




pgsql-hackers by date:

Previous
From: Gregory Stark
Date:
Subject: Re: Proposed patch - psql wraps at window width
Next
From: Anton Burkun
Date:
Subject: Compiling trigger function with MinGW