Bug 392571 - extended function keys f13 - f20 not available in konsole terminal
Summary: extended function keys f13 - f20 not available in konsole terminal
Status: RESOLVED FIXED
Alias: None
Product: konsole
Classification: Applications
Component: keyboard (show other bugs)
Version: 17.04.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Konsole Developer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-03-31 17:17 UTC by urs.eggli
Modified: 2020-10-23 06:19 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description urs.eggli 2018-03-31 17:17:19 UTC
I need to use extended function keys f13 to f20 for a legacy program that expects vt220 function key behaviour. While f6 to f12 work as expected, the extended keys don't, neither Shift+f1 = f10, or CTRL-F1 = f10, or similar methods. I am using OpenSuse Leap 42.3, KDE-Plasma version 5.87, KDE framworks version 5.32.0. NB: I tried using putty and that works fine for all function keys, but it does not handle special characters (such as Umlaut) correctly, and does not allow cut&paste functions in the terminal window - that's why I need Konsole. -- Thanks for looking at this!
Comment 1 Ahmad Samir 2018-04-02 12:02:07 UTC
You can use the key bindings editor to make a specific key combo send the escape sequence you want, for example, looking at the VT220 docs[1], F13 is supposed to send:
CSI   2     5    ~

so, in the key bindings editor add this rule:
F1+Ctrl  \E[25~

replace F1+Ctrl with whatever key combination you prefer.

You may want to create a new key bindings schema, (by clicking New), give it a name and save; it should appear in ~/.local/share/konsole/<name>.keytab, edit that file manually, adding the rules you want, then restart konsole and select that key binding scheme. 

Have a look at:
https://cgit.kde.org/konsole.git/tree/data/keyboard-layouts/README.KeyTab
https://cgit.kde.org/konsole.git/tree/data/keyboard-layouts/default.keytab

I'd close this as wontfix, since this is for a legacy program and usually a keyboard only has 12 F keys; (I'll leave the decision to the konsole dev).

[1]https://vt100.net/docs/vt220-rm/table3-4.html
Comment 2 Justin Zobel 2020-10-23 01:22:06 UTC
Urs can you please confirm Ahamd's solution worked for you so we can resolve this issue.
Comment 3 urs.eggli 2020-10-23 06:00:42 UTC
   Dear colleagues
   many thanks for the reminder. Please accept my apologies for not
   having reported back. The solution basically works - but I found that
   some programs, run from the command line, that operate in full screen
   mode, clear the selected set of bindings when they exit, making it
   necessary to re-load the desired bindings. But this is a reasonable
   work-around for a legacy application, and I am grateful for the
   advice. Best wishes, and stay healthy
   Urs


   Urs EggliObere Scheugstrasse 9CH-8707 Uetikon am See
   urs.eggli@bluewin.ch

   -------- Ursprüngliche Nachricht --------
   Von: Justin <bugzilla_noreply@kde.org>
   Datum: Fr., 23. Okt. 2020, 03:22
   An: urs.eggli@bluewin.ch
   Betreff: [konsole] [Bug 392571] extended function keys f13 - f20 not
   available in konsole terminal

     https://bugs.kde.org/show_bug.cgi?id=392571

     Justin <justin.zobel@gmail.com> changed:

     What |Removed |Added
     ----------------------------------------------------------------------------
     Resolution|--- |WAITINGFORINFO
     Status|REPORTED |NEEDSINFO
     CC| |justin.zobel@gmail.com

     --- Comment #2 from Justin <justin.zobel@gmail.com> ---
     Urs can you please confirm Ahamd's solution worked for you so we
     can resolve
     this issue.

     --
     You are receiving this mail because:
     You reported the bug.