This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug python/13723] New: Python raw_input does not support commandline editing even when readline is available
- From: "srhaque at theiet dot org" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 21 Feb 2012 22:25:20 +0000
- Subject: [Bug python/13723] New: Python raw_input does not support commandline editing even when readline is available
- Auto-submitted: auto-generated
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.