Re: Terminal width for help output - Mailing list pgsql-hackers

From Joshua D. Drake
Subject Re: Terminal width for help output
Date
Msg-id 20071115131016.1a4d58ec@scratch
Whole thread Raw
In response to Re: Terminal width for help output  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: Terminal width for help output  (Bruce Momjian <bruce@momjian.us>)
List pgsql-hackers
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 15 Nov 2007 16:04:46 -0500
Tom Lane <tgl@sss.pgh.pa.us> wrote:

> Peter Eisentraut <peter_e@gmx.net> writes:
> > Do we care to maintain a maximum width for programs' --help output
> > (and psql's \?)?  I think 79 characters was once a recommendation
> > (or perhaps 72), but we have a couple of violations either way,
> > which I'd like to fix, but what to?
> 
> I think 79 is still a reasonable maximum.  AFAIK 80 columns is still a
> pretty standard terminal window width, but if you try to print in the
> last column you may get unexpected extra blank lines.

O.k. this might be offtopic if it is feel free to smack me... but I
have noticed that psql really breaks on terminals that are wide.. \df
works fine, but \df+ is completely broke.

Can't we just ask the terminal?

Sincerely,

Joshua D. Drake


> 
>             regards, tom lane
> 
> ---------------------------(end of
> broadcast)--------------------------- TIP 7: You can help support the
> PostgreSQL project by donating at
> 
>                 http://www.postgresql.org/about/donate
> 


- -- 
     === The PostgreSQL Company: Command Prompt, Inc. ===
Sales/Support: +1.503.667.4564   24x7/Emergency: +1.800.492.2240
PostgreSQL solutions since 1997  http://www.commandprompt.com/        UNIQUE NOT NULL
Donate to the PostgreSQL Project: http://www.postgresql.org/about/donate
PostgreSQL Replication: http://www.commandprompt.com/products/

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHPLW4ATb/zqfZUUQRAtH2AJ0cm3Od8SibuI79osf8wG94pqGGnwCeNVjQ
qe+JxVIPris0akcrlCLeAO4=
=8pTZ
-----END PGP SIGNATURE-----

pgsql-hackers by date:

Previous
From: Andrew Dunstan
Date:
Subject: Re: Terminal width for help output
Next
From: Bruce Momjian
Date:
Subject: Re: Terminal width for help output