Re: Changing the continuation-line prompt in psql?

From: "David E(dot) Wheeler" <david(at)kineticode(dot)com>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Magnus Hagander <magnus(at)hagander(dot)net>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: Changing the continuation-line prompt in psql?
Date: 2011-04-29 16:04:35
Message-ID: 53519010-7AA8-49C6-9AE8-6DF22C8A74EF@kineticode.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Apr 29, 2011, at 8:22 AM, Tom Lane wrote:

> AFAICT the initial prompt is always "mysql> ", so they don't have to
> think hard about how many spaces to insert to make it line up. But
> we could certainly invent a prompt escape that means "as many spaces
> as there are characters in the current DB name". (Or maybe we should
> try to generalize that idea, so you could get similar behavior for
> custom prompts involving usernames etc?)

+1 I like this idea, so the prompt might by default be

postgres=>
+>

Best,

David

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Alvaro Herrera 2011-04-29 16:17:47 Re: Changing the continuation-line prompt in psql?
Previous Message Tom Lane 2011-04-29 15:22:39 Re: Changing the continuation-line prompt in psql?