1. Keys in EE for Linux

Up until two minutes ago my escape key did not work in EE. I just patched
keys.e (in Irv's Linux EE obviously).

Linux return alt characters as 27 followed by the character.

If you press escape the following character is -1 apparently, meaning that
when you add 1000 (like Irv does) you get 999.

By changing keys.e line 93 from

  93:    ESC         = 1027 -- was 1000

to

  93:    ESC         = 999 --was 1027 -- was 1000

escape works fine. This means I can get rid of menus and dialogs without
having to choose something which is nice. Do other people have the same
prob ? I'm using Debian 2.0

The second problem is shift characters. Unfortunately get_key() returns
the same value for some of these (like tab and arrow keys) as unshifted
characters. This means that I cannot select text, I have to use backspace
to delete multiple lines and I cannot backtab on dialogs.

Can anybody suggestion a solution/workaround or at least a reason for
these ?

Daniel

--
Today's Proverb :
Hold fast to discipline, do not let it go; guard it, for it is your life. (4v13)

Daniel Johnson               Engineer, smartypants and clown
Jesus College, Cambridge     all at a very reasonable price
dpj22 at cam.ac.uk
zeus.jesus.cam.ac.uk/~dpj22  talk dpj22 at jewish.jesus.cam.ac.uk

new topic     » topic index » view message » categorize

2. Re: Keys in EE for Linux

Daniel Johnson wrote:

> Up until two minutes ago my escape key did not work in EE. I just patched
> keys.e (in Irv's Linux EE obviously).
>
> Linux return alt characters as 27 followed by the character.
>
> If you press escape the following character is -1 apparently, meaning that
> when you add 1000 (like Irv does) you get 999.
>
> By changing keys.e line 93 from
>
>   93:    ESC         = 1027 -- was 1000
>
> to
>
>   93:    ESC         = 999 --was 1027 -- was 1000
>
> escape works fine. This means I can get rid of menus and dialogs without
> having to choose something which is nice. Do other people have the same
> prob ? I'm using Debian 2.0

<SNIP>

I have the same problem. Thanks for the bugfix. I use Mandrake 6.0

Neil Harvey

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu