This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [python] [patch] set/show extended-prompt
- From: Matt Rice <ratmice at gmail dot com>
- To: pmuldoon at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 11 Aug 2011 14:42:16 -0700
- Subject: Re: [python] [patch] set/show extended-prompt
- References: <m3liv0yol6.fsf@redhat.com>
On Thu, Aug 11, 2011 at 8:06 AM, Phil Muldoon <pmuldoon@redhat.com> wrote:
> +@item @var{\e}
> +Substitute an ESC character.
> +def _prompt_esc(attr):
> + ? ?"The ESC character."
> + ? ?return '\033'
won't usage of this (without an equivalent to bash's \[ \]) mess up
the prompt width calculation?
maybe something like...
@item @var{\[}
Begins a sequence of non-printing characters.
@item @var{\]}
Ends a sequence of non-printing characters.
def _prompt_nonprinting_begin(attr):
"Begins a sequence of non-printing characters."
return '\001'
def _prompt_nonprinting_end(attr):
"Ends a sequence of non-printing characters."
return '\002'