Browse Source

+ get the current code page in the msdos keyboard unit as well

Nikolay Nikolov 3 years ago
parent
commit
501b2d6c6f
1 changed files with 4 additions and 0 deletions
  1. 4 0
      packages/rtl-console/src/msdos/keyboard.pp

+ 4 - 0
packages/rtl-console/src/msdos/keyboard.pp

@@ -41,6 +41,10 @@ begin
       if regs.ax<>$1200 then
         keyboard_type:=$10;
     end;
+  regs.ax:=$6601;
+  msdos(regs);
+  if (regs.flags and fCarry) = 0 then
+     CurrentLegacy2EnhancedKeyEventTranslationCodePage:=regs.bx;
 end;