[Konsole-devel] [Bug 76976] New: AppScreen support in konsole keytab

Don Mahurin dmahurin at dma.org
Sun Mar 7 23:45:21 UTC 2004


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
      
http://bugs.kde.org/show_bug.cgi?id=76976      
           Summary: AppScreen support in konsole keytab
           Product: konsole
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: wishlist
          Priority: NOR
         Component: general
        AssignedTo: konsole-devel kde org
        ReportedBy: dmahurin dma org


Version:            (using KDE Devel)
Installed from:    Compiled sources
OS:          Linux

This patch adds AppScreen support to keytab, so you can have bindings that are different depending on whether you are in a curses editor or not.
Sample use:

key Prior +Shift +AppScreen : "\E[5$"
key Next +Shift +AppScreen: "\E[6$"

key Prior +Shift -AppScreen  : scrollPageUp
key Down  +Shift  -AppScreen : scrollLineDown

Where do I attach the patch?

Index: konsole/konsole/TEmuVt102.cpp
===================================================================
RCS file: /home/kde/kdebase/konsole/konsole/TEmuVt102.cpp,v
retrieving revision 1.107
diff -u -3 -p -r1.107 TEmuVt102.cpp
--- konsole/konsole/TEmuVt102.cpp       3 Nov 2003 08:27:30 -0000       1.107
+++ konsole/konsole/TEmuVt102.cpp       5 Mar 2004 21:41:51 -0000
 @ -895,6 +895,7  @ void TEmuVt102::onKeyPress( QKeyEvent* e
   if (keytrans->findEntry(ev->key(), encodeMode(MODE_NewLine  , BITS_NewLine   ) + // OLD,
                                      encodeMode(MODE_Ansi     , BITS_Ansi      ) + // OBSOLETE,
                                      encodeMode(MODE_AppCuKeys, BITS_AppCuKeys ) + // VT100 stuff
+                                     encodeMode(MODE_AppScreen, BITS_AppScreen ) + // VT100 stuff
                                      encodeStat(ControlButton , BITS_Control   ) +
                                      encodeStat(ShiftButton   , BITS_Shift     ) +
                                      encodeStat(AltButton     , BITS_Alt       ),
Index: konsole/konsole/keytrans.cpp
===================================================================
RCS file: /home/kde/kdebase/konsole/konsole/keytrans.cpp,v
retrieving revision 1.46
diff -u -3 -p -r1.46 keytrans.cpp
--- konsole/konsole/keytrans.cpp        26 Jul 2003 10:41:25 -0000      1.46
+++ konsole/konsole/keytrans.cpp        5 Mar 2004 21:41:51 -0000
 @ -483,6 +483,7  @ void KeyTransSymbols::defModSyms()
   defModSym("Ansi",       BITS_Ansi         );
   defModSym("NewLine",    BITS_NewLine      );
   defModSym("AppCuKeys",  BITS_AppCuKeys    );
+  defModSym("AppScreen",  BITS_AppScreen    );
 }

 void KeyTransSymbols::defKeySyms()
Index: konsole/konsole/keytrans.h
===================================================================
RCS file: /home/kde/kdebase/konsole/konsole/keytrans.h,v
retrieving revision 1.22
diff -u -3 -p -r1.22 keytrans.h
--- konsole/konsole/keytrans.h  16 Feb 2003 23:27:46 -0000      1.22
+++ konsole/konsole/keytrans.h  5 Mar 2004 21:41:51 -0000
 @ -25,6 +25,7  @
 #define BITS_Shift      5
 #define BITS_Alt        6
 #define BITS_COUNT      7
+#define BITS_AppScreen  8

 #define CMD_none          -1
 #define CMD_send           0



More information about the konsole-devel mailing list