public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug cli/13044] New: escape sequences differ between set prompt/show prompt
@ 2011-07-29 18:51 ratmice at gmail dot com
  0 siblings, 0 replies; only message in thread
From: ratmice at gmail dot com @ 2011-07-29 18:51 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=13044

           Summary: escape sequences differ between set prompt/show prompt
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: normal
          Priority: P2
         Component: cli
        AssignedTo: unassigned@sourceware.org
        ReportedBy: ratmice@gmail.com


(gdb) set prompt (\001\033[0;34m\002gdb\001\033[0m\002)\040
(gdb) show prompt
Gdb's prompt is "(\001\e[0;34m\002gdb\001\e[0m\002) ".
(gdb) set prompt (\001\e[0;34m\002gdb\001\e[0m\002) 
(e[0;34mgdbe[0m) set prompt (gdb)\040
(gdb)

so 'set prompt' doesn't handle \e syntax, but the utils.c:printchar() turns
\033 into \e.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-29 18:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-29 18:51 [Bug cli/13044] New: escape sequences differ between set prompt/show prompt ratmice at gmail dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).