diff --git a/Asuro.iso b/Asuro.iso index 3ceb1ace..ac4ceb35 100644 Binary files a/Asuro.iso and b/Asuro.iso differ diff --git a/bin/kernel.bin b/bin/kernel.bin index 4aa8bdaa..51ba5ef2 100755 Binary files a/bin/kernel.bin and b/bin/kernel.bin differ diff --git a/iso/boot/asuro.bin b/iso/boot/asuro.bin index 4aa8bdaa..51ba5ef2 100755 Binary files a/iso/boot/asuro.bin and b/iso/boot/asuro.bin differ diff --git a/lib/asuro.ppu b/lib/asuro.ppu index 1554d95e..5d74bd7d 100644 Binary files a/lib/asuro.ppu and b/lib/asuro.ppu differ diff --git a/lib/console.o b/lib/console.o index 098617e0..f02e51d0 100644 Binary files a/lib/console.o and b/lib/console.o differ diff --git a/lib/console.ppu b/lib/console.ppu index a3f50651..9cd4ac51 100644 Binary files a/lib/console.ppu and b/lib/console.ppu differ diff --git a/lib/libpconsole.a b/lib/libpconsole.a index 58a4d96c..4fca4f59 100644 Binary files a/lib/libpconsole.a and b/lib/libpconsole.a differ diff --git a/lib/libpmultiboot.a b/lib/libpmultiboot.a index b689d946..e5d7844a 100644 Binary files a/lib/libpmultiboot.a and b/lib/libpmultiboot.a differ diff --git a/lib/libpsystem.a b/lib/libpsystem.a index 54a6b89b..05f24c2f 100644 Binary files a/lib/libpsystem.a and b/lib/libpsystem.a differ diff --git a/lib/terminal.ppu b/lib/terminal.ppu index c4f7d32e..922ffd3b 100644 Binary files a/lib/terminal.ppu and b/lib/terminal.ppu differ diff --git a/src/console.pas b/src/console.pas index 3be4cb5a..7666853b 100644 --- a/src/console.pas +++ b/src/console.pas @@ -315,6 +315,7 @@ var UnhandledClick : Boolean = false; UnhandledClickLeft : Boolean = false; MouseCursorEnabled : Boolean = true; + OpenTerminal : Boolean = false; procedure mouseEnabled(b : boolean); begin @@ -703,6 +704,11 @@ var SelectedWindow : uint32; begin + if OpenTerminal then begin + terminal.run; + OpenTerminal:= false; + end; + { Clear the Console_Matrix } for y:=0 to 63 do begin for x:=0 to 159 do begin @@ -1072,9 +1078,15 @@ end; procedure keyhook(key_info : TKeyInfo); begin - if WindowManager.Z_Order[0] <> MAX_WINDOWS then begin - if WindowManager.Windows[WindowManager.Z_Order[0]] <> nil then begin - if WindowManager.Windows[WindowManager.Z_Order[0]]^.Hooks.OnKeyPressed <> nil then WindowManager.Windows[WindowManager.Z_Order[0]]^.Hooks.OnKeyPressed(key_info); + if (key_info.CTRL_DOWN) and (key_info.ALT_DOWN) then begin + case key_info.key_code of + uint8('c'):OpenTerminal:=true; + end; + end else begin + if WindowManager.Z_Order[0] <> MAX_WINDOWS then begin + if WindowManager.Windows[WindowManager.Z_Order[0]] <> nil then begin + if WindowManager.Windows[WindowManager.Z_Order[0]]^.Hooks.OnKeyPressed <> nil then WindowManager.Windows[WindowManager.Z_Order[0]]^.Hooks.OnKeyPressed(key_info); + end; end; end; end; diff --git a/src/include/asuro.pas b/src/include/asuro.pas index 033d01b3..aea80702 100644 --- a/src/include/asuro.pas +++ b/src/include/asuro.pas @@ -3,13 +3,13 @@ unit asuro; interface const - VERSION = '1.0.0-660a'; + VERSION = '1.0.0-661a'; VERSION_MAJOR = '1'; VERSION_MINOR = '0'; VERSION_SUB = '0'; - REVISION = '660'; + REVISION = '661'; RELEASE = 'a'; - LINE_COUNT = 26872; + LINE_COUNT = 26884; implementation