Menu

#59 Different Key binding

open
nobody
5
2010-06-03
2010-06-03
No

Hi,

I'm developing an application with jLine as framework for the user interface, called DB2 Syntax Assistant (http://db2sa.sourceforge.net/)
I've been using jline for simple things like tab completing, or command history, and it works really fine.
Now, I want to bind new shortcut keys for other operations, I tried with simple keys, such as ctrl+O or ctrl+Y and it works perfectly. However, I would like something like ctrl+shift+i or ctrl+alt+d, but I don't see how to configure this behavior in jline.

The shortcuts are normally a letter or contrl+letter, but not other keys or combination of keys.
Additionally, the ANSI escape character described in the ANSIBuffer class, says the codes are like this:

alt+d == 0;32

The problem is that this is not a number, and jline will read it from the keybindings file as an integer.

I would like to know the way other combination keys are configured.

Thanks.

Discussion


Log in to post a comment.