Browse Source

Implementation of Kitty keys and xterm - ModifyOtherKeys (Unix keyboard)

Margers 11 months ago
parent
commit
69e7ffadba
2 changed files with 803 additions and 89 deletions
  1. 801 89
      packages/rtl-console/src/unix/keyboard.pp
  2. 2 0
      packages/rtl-console/src/unix/video.pp

File diff suppressed because it is too large
+ 801 - 89
packages/rtl-console/src/unix/keyboard.pp


+ 2 - 0
packages/rtl-console/src/unix/video.pp

@@ -1159,6 +1159,7 @@ begin
      videoInitDone;
      videoInitDone;
 
 
      decide_codepages;
      decide_codepages;
+     SendEscapeSeq(#27'[>31u');{Entering alternativ screen we have to set up kitty keys}
    end
    end
   else
   else
    ErrorCode:=errVioInit; { not a TTY }
    ErrorCode:=errVioInit; { not a TTY }
@@ -1169,6 +1170,7 @@ procedure SysDoneVideo;
 var font_custom:array[0..2] of AnsiChar=#27'(K';
 var font_custom:array[0..2] of AnsiChar=#27'(K';
 
 
 begin
 begin
+  SendEscapeSeq(#27'[<u'); { kitty keys disable }
   prepareDoneVideo;
   prepareDoneVideo;
   SetCursorType(crUnderLine);
   SetCursorType(crUnderLine);
 {$ifdef linux}
 {$ifdef linux}

Some files were not shown because too many files changed in this diff