Invisible PROMPT2
Thomas Munro <thomas.munro@gmail.com>
From: Thomas Munro <thomas.munro@gmail.com>
To: pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2019-11-13T03:14:44Z
Lists: pgsql-hackers
Attachments
- invisible-database.patch (application/octet-stream) patch
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=#
Commits
-
psql: Fix %w length in PROMPT2 when PROMPT1 contains a newline.
- 1713a0013f90 13.0 landed
-
Allow invisible PROMPT2 in psql.
- 7f338369ca62 13.0 landed