diff options
Diffstat (limited to 'doc/src')
-rw-r--r-- | doc/src/sgml/ref/psql-ref.sgml | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/src/sgml/ref/psql-ref.sgml b/doc/src/sgml/ref/psql-ref.sgml index 7789fc61776..a55ca6a2666 100644 --- a/doc/src/sgml/ref/psql-ref.sgml +++ b/doc/src/sgml/ref/psql-ref.sgml @@ -4310,6 +4310,18 @@ testdb=> \set PROMPT1 '%[%033[1;33;40m%]%n@%/%R%[%033[0m%]%# ' </listitem> </varlistentry> + <varlistentry> + <term><literal>%w</literal></term> + <listitem> + <para> + Whitespace of the same width as the most recent output of + <varname>PROMPT1</varname>. This can be used as a + <varname>PROMPT2</varname> setting, so that multi-line statements are + aligned with the first line, but there is no visible secondary prompt. + </para> + </listitem> + </varlistentry> + </variablelist> To insert a percent sign into your prompt, write |