Issue1392

classification
Title: Home/End/Del keys don't work in the console.
Type: behaviour Severity: minor
Components: Versions: 2.5.1
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: pjenvey, refactored
Priority: Keywords:

Created on 2009-07-02.12:21:11 by refactored, last changed 2009-07-08.01:00:21 by pjenvey.

Messages
msg4872 (view) Author: Phillip Oldham (refactored) Date: 2009-07-02.12:21:11
The home/end/del keys don't work as expected in the jython commandline
console. Home/End insert text rather than jumping to the start/end of
the line. Del does a backspace (delete to the left) rather than a delete
to the right as expected.
msg4890 (view) Author: Philip Jenvey (pjenvey) Date: 2009-07-08.01:00:21
Is this on Windows?

We can customize some (if not all) of these keys with the jline 
keybindings file:

http://fisheye3.atlassian.com/browse/jython/trunk/jython/src/org/python/
util/jline-keybindings.properties?r=6326

If you want to try tweaking these settings, Jline also reads this 
configurartion file from $user.home/.jlinebindings.properties

This is how Jline maps these keys on windows (POSIX is different):

            case DELETE_KEY:
                return CTRL_QM; // translate DELETE -> CTRL-?
            case HOME_KEY:
                return CTRL_A;
            case END_KEY:
                return CTRL_E;
History
Date User Action Args
2009-07-08 01:00:21pjenveysetnosy: + pjenvey
messages: + msg4890
2009-07-02 12:21:11refactoredcreate