| From: | Pavel Stehule <pavel(dot)stehule(at)gmail(dot)com> |
|---|---|
| To: | Thomas Munro <thomas(dot)munro(at)gmail(dot)com> |
| Cc: | pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Invisible PROMPT2 |
| Date: | 2019-11-13 05:58:11 |
| Message-ID: | CAFj8pRBr3=dB62feOVXmCFducb6wSMk6tkVU=Vm9=_afTD=MWg@mail.gmail.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
st 13. 11. 2019 v 4:15 odesílatel Thomas Munro <thomas(dot)munro(at)gmail(dot)com>
napsal:
> 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=#
>
+1
Pavel
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Masahiko Sawada | 2019-11-13 06:08:27 | Re: [HACKERS] Block level parallel vacuum |
| Previous Message | Michael Paquier | 2019-11-13 05:41:17 | Re: pg_waldump and PREPARE |