Invisible PROMPT2 - Mailing list pgsql-hackers

From Thomas Munro
Subject Invisible PROMPT2
Date
Msg-id CA+hUKG+zGd7RigjWbxwhzGW59gUpf76ydQECeGdEdodH6nd__A@mail.gmail.com
Whole thread Raw
Responses Re: Invisible PROMPT2  (Pavel Stehule <pavel.stehule@gmail.com>)
Re: Invisible PROMPT2  (ilmari@ilmari.org (Dagfinn Ilmari Mannsåker))
List pgsql-hackers
Hello hackers,

From the advanced bikeshedding department: I'd like my psql
transcripts to have the usual alignment, but be easier to copy and
paste later without having weird prompt stuff in the middle.  How
about a prompt format directive %w that means "whitespace of the same
width as %/"?  Then you can make set your PROMPT2 to '%w   ' and it
becomes invisible:

pgdu=# create table foo (
         i int,
         j int
       );
CREATE TABLE
pgdu=#

Attachment

pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: libpq sslpassword parameter and callback function
Next
From: Bruce Momjian
Date:
Subject: Re: Feature improvement: can we add queryId forpg_catalog.pg_stat_activity view?