瀏覽代碼

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

Margers 1 年之前
父節點
當前提交
69e7ffadba
共有 2 個文件被更改,包括 803 次插入89 次删除
  1. 801 89
      packages/rtl-console/src/unix/keyboard.pp
  2. 2 0
      packages/rtl-console/src/unix/video.pp

文件差異過大導致無法顯示
+ 801 - 89
packages/rtl-console/src/unix/keyboard.pp


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

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

部分文件因文件數量過多而無法顯示