From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15677 invoked by alias); 11 Aug 2011 21:42:33 -0000 Received: (qmail 15668 invoked by uid 22791); 11 Aug 2011 21:42:32 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-gw0-f41.google.com (HELO mail-gw0-f41.google.com) (74.125.83.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Aug 2011 21:42:18 +0000 Received: by gwaa20 with SMTP id a20so1814934gwa.0 for ; Thu, 11 Aug 2011 14:42:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.236.175.102 with SMTP id y66mr500064yhl.28.1313098938124; Thu, 11 Aug 2011 14:42:18 -0700 (PDT) Received: by 10.236.34.193 with HTTP; Thu, 11 Aug 2011 14:42:16 -0700 (PDT) In-Reply-To: References: Date: Thu, 11 Aug 2011 21:42:00 -0000 Message-ID: Subject: Re: [python] [patch] set/show extended-prompt From: Matt Rice To: pmuldoon@redhat.com Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00241.txt.bz2 On Thu, Aug 11, 2011 at 8:06 AM, Phil Muldoon wrote: > +@item @var{\e} > +Substitute an ESC character. > +def _prompt_esc(attr): > + =A0 =A0"The ESC character." > + =A0 =A0return '\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'