Re: Invisible PROMPT2
Alvaro Herrera <alvherre@2ndquadrant.com>
From: Alvaro Herrera <alvherre@2ndquadrant.com>
To: Thomas Munro <thomas.munro@gmail.com>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Kyotaro Horiguchi <horikyota.ntt@gmail.com>, David Fetter <david@fetter.org>, ilmari@ilmari.org, pgsql-hackers <pgsql-hackers@postgresql.org>
Date: 2019-11-18T00:49:24Z
Lists: pgsql-hackers
On 2019-Nov-18, Thomas Munro wrote: > Nice idea. Here's one like that, that just does the counting at the > end and looks out for readline control codes. It's pretty naive about > what "width" means though: you'll get two spaces for UTF-8 encoded é, > and I suppose a complete implementation would know about the half > width/full width thing for Chinese and Japanese etc. Hmm ... is this related to what Juan José posted at https://postgr.es/m/CAC+AXB28ADgwdNRA=aAoWDYPqO1DZR+5NTO8iXGSsFrXyVpqYQ@mail.gmail.com ? That's backend code of course, though. -- Álvaro Herrera https://www.2ndQuadrant.com/ PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
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