mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 03:37:43 +00:00
Kernel: Restore alt+n hijacking for virtual console switching
This commit is contained in:
parent
e4826276d1
commit
dffdd5545a
1 changed files with 3 additions and 3 deletions
|
@ -4,6 +4,7 @@
|
||||||
#include "kmalloc.h"
|
#include "kmalloc.h"
|
||||||
#include <AK/AKString.h>
|
#include <AK/AKString.h>
|
||||||
#include <Kernel/Arch/i386/CPU.h>
|
#include <Kernel/Arch/i386/CPU.h>
|
||||||
|
#include <Kernel/Devices/KeyboardDevice.h>
|
||||||
|
|
||||||
static u8* s_vga_buffer;
|
static u8* s_vga_buffer;
|
||||||
static VirtualConsole* s_consoles[6];
|
static VirtualConsole* s_consoles[6];
|
||||||
|
@ -101,6 +102,7 @@ void VirtualConsole::set_active(bool b)
|
||||||
m_active = b;
|
m_active = b;
|
||||||
if (!m_active) {
|
if (!m_active) {
|
||||||
memcpy(m_buffer, m_current_vga_window, rows() * columns() * 2);
|
memcpy(m_buffer, m_current_vga_window, rows() * columns() * 2);
|
||||||
|
KeyboardDevice::the().set_client(nullptr);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -108,9 +110,7 @@ void VirtualConsole::set_active(bool b)
|
||||||
set_vga_start_row(0);
|
set_vga_start_row(0);
|
||||||
flush_vga_cursor();
|
flush_vga_cursor();
|
||||||
|
|
||||||
#if 0
|
KeyboardDevice::the().set_client(this);
|
||||||
Keyboard::the().set_client(this);
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool is_valid_parameter_character(u8 ch)
|
inline bool is_valid_parameter_character(u8 ch)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue