* Konsole
@ 2000-05-30 4:00 Olivier Adam
2000-05-30 4:00 ` Konsole Tony Hammitt
0 siblings, 1 reply; 3+ messages in thread
From: Olivier Adam @ 2000-05-30 4:00 UTC (permalink / raw)
Hi,
I'm using RedHat 6.1 installed on a Compaq DS10.
My system runs approximately fine, but i'm a KDE user
and it seems to have some stability problems...
However, i'd like to know how to deal with 'delete'
and 'backspace' keys. Especially in Konsole, which i
use as terminal emulator. Both keys produce a '~' instead
of suppressing the characters... sorry if it is a dumb question
but how can i work this around ?
A similar problem exists in Kedit, for example :((
Thanks,
Olivier
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Konsole
2000-05-30 4:00 Konsole Olivier Adam
@ 2000-05-30 4:00 ` Tony Hammitt
2000-05-31 4:00 ` Konsole Olivier Adam
0 siblings, 1 reply; 3+ messages in thread
From: Tony Hammitt @ 2000-05-30 4:00 UTC (permalink / raw)
Olivier Adam wrote:
>
> Hi,
>
> I'm using RedHat 6.1 installed on a Compaq DS10.
> My system runs approximately fine, but i'm a KDE user
> and it seems to have some stability problems...
>
> However, i'd like to know how to deal with 'delete'
> and 'backspace' keys. Especially in Konsole, which i
> use as terminal emulator. Both keys produce a '~' instead
> of suppressing the characters... sorry if it is a dumb question
> but how can i work this around ?
>
> A similar problem exists in Kedit, for example :((
>
> Thanks,
>
> Olivier
Well, if they won't work in anything, it makes me wonder what
keycode they are sending. X works by interpreting the key you
type into a symbol code, then the programs work based on that
symbol code instead of the raw key code. This helps porting
and internationalization.
Try the following:
launch the program 'xev', the X event displayer
move the pointer into the window, this will cause lots of
events to be displayed in the terminal.
press the backspace key, if you see something like the following,
it is properly defined:
KeyPress event, serial 18, synthetic NO, window 0x3400001,
root 0x26, subw 0x0, time 1927467055, (110,98), root:(258,301),
state 0x0, keycode 22 (keysym 0xff08, BackSpace), same_screen YES,
XLookupString gives 1 characters: "
KeyRelease event, serial 21, synthetic NO, window 0x3400001,
root 0x26, subw 0x0, time 1927467191, (110,98), root:(258,301),
state 0x0, keycode 22 (keysym 0xff08, BackSpace), same_screen YES,
XLookupString gives 1 characters: "
this is what I got for pressing delete:
KeyPress event, serial 21, synthetic NO, window 0x3400001,
root 0x26, subw 0x0, time 1927532996, (85,43), root:(660,224),
state 0x0, keycode 107 (keysym 0xffff, Delete), same_screen YES,
XLookupString gives 1 characters: ""
KeyRelease event, serial 21, synthetic NO, window 0x3400001,
root 0x26, subw 0x0, time 1927533101, (85,43), root:(660,224),
state 0x0, keycode 107 (keysym 0xffff, Delete), same_screen YES,
XLookupString gives 1 characters: ""
If you got different keysym codes, you'll need to change them. This
is done with the xmodmap command, which has to be run everytime you
startx. If your keycode is 22 and you want to send backspace, try:
xmodmap -e 'keycode 22 = 0xFF08'
If you want to redefine some other keys, the codes are in:
/usr/X11R6/include/X11/keysymdef.h
just get the keycode from xev and have it send a keysym from the file.
Hope this helps,
Tony Hammitt
P.S.
This is also useful to do something with those silly windoze keys,
like if you wanted to remap them to F13-F15. On my keyboard, this
takes:
xmodmap -e 'keycode 115 = 0xFFCA' # F13
xmodmap -e 'keycode 116 = 0xFFCB' # F14
xmodmap -e 'keycode 117 = 0xFFCC' # F15
Then I told nedit that F13 was save.. Jeez, I'm lazy...
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Konsole
2000-05-30 4:00 ` Konsole Tony Hammitt
@ 2000-05-31 4:00 ` Olivier Adam
0 siblings, 0 replies; 3+ messages in thread
From: Olivier Adam @ 2000-05-31 4:00 UTC (permalink / raw)
Tony Hammitt wrote:
> Well, if they won't work in anything, it makes me wonder what
> keycode they are sending.
Thank you very much !
In fact, i had indeed some mismatch in the key definitions....
For example, i was unable to make a backspace in linuxconf;
and always had to get back the make a del.
So i made a proper xmodmap for Backspace and Delete....
which works in konsole as in all the other apps i tried since.
Last problem remaining.... even if the delete key is defined
correctly (0xFFFF), it doesnt seem to be correctly interpreted.
Somtimes it acts like a backspace, sometimes just as usual in the
konsole, issues a '~'.
However, Backspace was my main concern, and i can start using
konsole again :)) Thanks again, your help is greatly appreciated !
Olivier
> just get the keycode from xev and have it send a keysym from the file.
heheh cool.... too bad i dont have a Windows keyboard =))
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-05-31 4:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-30 4:00 Konsole Olivier Adam
2000-05-30 4:00 ` Konsole Tony Hammitt
2000-05-31 4:00 ` Konsole Olivier Adam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox