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 python/13723] New: Python raw_input does not support commandline editing even when readline is available


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

             Bug #: 13723
           Summary: Python raw_input does not support command line editing
                    even when readline is available
           Product: gdb
           Version: 7.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
        AssignedTo: unassigned@sourceware.org
        ReportedBy: srhaque@theiet.org
    Classification: Unclassified


Expected behaviour
------------------
According to the Python docs, if raw_input is called after readline is
imported, various Emacs-style editing operations such as ^A to move to the
start of the line should be available.

Actual behaviour
----------------
Note how ^A is simply echoed, rather than being interpreted as an editing
command.

(gdb) python import readline; line = raw_input("foo: ")
foo: a quick test^A

Severity
--------
serious

Priority
--------
medium

Submitter-Id
------------
net

Release
-------
GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08

Environment
-----------
Linux <*****.***.***> 3.0.0-16-generic #28-Ubuntu SMP Fri Jan 27 17:44:39 UTC
2012 x86_64 x86_64 x86_64 GNU/Linux

How-To-Repeat
-------------
See above.

-- 
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]