This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug cli/13044] New: escape sequences differ between set prompt/showprompt
- From: "ratmice at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Fri, 29 Jul 2011 18:51:00 +0000
- Subject: [Bug cli/13044] New: escape sequences differ between set prompt/showprompt
- Auto-submitted: auto-generated
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.