Discussion:
[Bug cli/13044] New: escape sequences differ between set prompt/show prompt
ratmice at gmail dot com
2011-07-29 18:51:00 UTC
Permalink
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: ***@sourceware.org
ReportedBy: ***@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.
tromey at sourceware dot org
2018-09-09 03:39:13 UTC
Permalink
https://sourceware.org/bugzilla/show_bug.cgi?id=13044

Tom Tromey <tromey at sourceware dot org> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at sourceware dot org
--
You are receiving this mail because:
You are on the CC list for the bug.
Loading...