From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Allow invisible PROMPT2 in psql.
Date: Tue, 19 Nov 2019 02:57:58 +0000
Message-ID: <E1iWtiI-000543-6M@gemulon.postgresql.org> (raw)
Allow invisible PROMPT2 in psql.
Keep track of the visible width of PROMPT1, and provide %w as a way
for PROMPT2 to generate the same number of spaces.
Author: Thomas Munro, with ideas from others
Reviewed-by: Tom Lane (earlier version)
Discussion: https://postgr.es/m/CA%2BhUKG%2BzGd7RigjWbxwhzGW59gUpf76ydQECeGdEdodH6nd__A%40mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/7f338369ca624ca6c2e4f579623274c88d325bce
Modified Files
--------------
doc/src/sgml/ref/psql-ref.sgml | 12 ++++++++++
src/bin/psql/prompt.c | 52 ++++++++++++++++++++++++++++++++++++++++++
2 files changed, 64 insertions(+)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: tmunro@postgresql.org
Subject: Re: pgsql: Allow invisible PROMPT2 in psql.
In-Reply-To: <E1iWtiI-000543-6M@gemulon.postgresql.org>
References: <E1iWtiI-000543-6M@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox