This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug cli/13044] New: escape sequences differ between set prompt/showprompt


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]