[Idle-dev] Idle key bindings

Mats Wichmann mats@laplaza.org
Thu, 23 Aug 2001 13:37:34 -0600


At 09:05 PM 8/23/2001 +0200, Hernan Martinez Foffani wrote:
 >Charlie Paxton
 >>
 >> idle-dev,
 >> Is it possible to change the unix key bindings in Idle?
 >> I'd like to change to windows key bindings on my linux machine.
 >
 >Yes.
 >Just edit the file {PYTHONPATH}/Tools/Idle/keydefs.py
 >The convention there is very straightforward.
 >Look for unix_keydefs dictionary in that file and edit
 >it carefully. :-)
 >But I don't know if you can rebind everything you want. There's
 >a chance that some key combinations are caught by the OS before
 >they reach Idle...

This is a little murky.  The tty driver has always handled
"the terminal", even when it's a terminal window on a graphics
screen (in this case because a pseudo terminal - a pty - is
assigned to make sure things behave familarly).  I'm not sure
if there's a pty in effect in case an application pops up its'
own window, as is the case for IDLE.

In any case, to see the current bindings, do "stty -a".

I'm sure someone knows how this really works.