Invisible PROMPT2

From: Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Invisible PROMPT2
Date: 2019-11-13 03:14:44
Message-ID: CA+hUKG+zGd7RigjWbxwhzGW59gUpf76ydQECeGdEdodH6nd__A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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 Content-Type Size
invisible-database.patch application/octet-stream 874 bytes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2019-11-13 03:15:23 Re: Feature improvement: can we add queryId for pg_catalog.pg_stat_activity view?
Previous Message Bruce Momjian 2019-11-13 03:10:38 Re: libpq sslpassword parameter and callback function