Bug 158095 - shift return gives unexpected behaviour
Summary: shift return gives unexpected behaviour
Status: RESOLVED WORKSFORME
Alias: None
Product: konsole
Classification: Applications
Component: general (show other bugs)
Version: 1.6.6
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-20 14:14 UTC by Hans-Peter Guggenbichler
Modified: 2008-02-22 16:36 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hans-Peter Guggenbichler 2008-02-20 14:14:06 UTC
Version:           1.6.6 (using KDE 3.5.8)
Installed from:    Ubuntu Packages
OS:                Linux

Hello Folks,

I'm new to the process, so please forgive me if doing something wrong.

My problem is this:

When I hit shift-return in konsole, the system notification bell rings.
I'd like to have shift-return doing the same as return.
So I mapped 

xmodmap -e "keycode  36 = Return Return Return  "

Still the bell rings. 
I can't find any shortcut, neither in konsole nor in X defined for shift-return.

What is going on here ?

best regards,
Hans-Peter
Comment 1 Robert Knight 2008-02-22 04:30:56 UTC
It appears that there is a key binding in the default set supplied with Konsole which causes this.  Shift+Return causes "\E0M" to be sent to the terminal.  I don't know at the moment why the binding is there.

In KDE 4, it can be removed in the GUI:

1.  Settings -> Edit Current Profile -> Input
2.  Click Edit...
3.  Select the "Return + Shift" line in the binding list
4.  Click Remove
5.  Click OK and then OK again.

In KDE 3, the default set of key bindings are hard coded and cannot be changed.  You can however changed to a different keyboard mapping via the Settings -> Keyboard menu.  The key bindings other than the default ("XFree 4.x.x") in that list are read from the *.keytab files in /usr/share/apps/konsole
Comment 2 Robert Knight 2008-02-22 04:35:01 UTC
I should add some context to comment #1.  

Konsole allows custom key bindings to be defined which are used to map key combinations to the characters sent to the terminal.  
Comment 3 Hans-Peter Guggenbichler 2008-02-22 10:24:08 UTC
Thanks a lot, that is what I needed to know.  

I'd also like to know which control sequences  (e.g. clear line, set cursor position) are valid for kconsole. Reason is, I have to connect to a couple of AIX servers from 4.3 up to 5.3. They are running applications in text terminals written with something like curses. I have to provide all the keycodes and control codes to this system to get the thing running on my linux desktop machine.

I was looking for some documentation but couldn't find any. 
Can you provide a list of valid control sequences and keycodes?

regards,
Hans-Peter
Comment 4 Robert Knight 2008-02-22 13:09:22 UTC
> I'd also like to know which control sequences
>  (e.g. clear line, set cursor position) are valid for kconsole.

Konsole tries to be XTerm-compatible.  Most of the actual escape sequences are 
taken from the DEC VT102 terminal.  

A list of control sequences for XTerm, which should also work for Konsole, can be found here:

http://rtfm.etla.org/xterm/ctlseq.html
Comment 5 Hans-Peter Guggenbichler 2008-02-22 16:36:07 UTC
great info! 
thanks a lot
bye
Hans-Peter