1

disable scrollback control

This commit is contained in:
2022-07-11 23:00:01 +02:00
parent 5ca6d25c7c
commit 0f6e26b0c0
2 changed files with 15 additions and 13 deletions

View File

@ -340,9 +340,11 @@ void Keyboard::trigger() {
// NOTE: My keyboard has no delete key...
if (key.ctrl_left() && key.alt_left() && (char)key == 'r') {
this->reboot();
} else if ((char)key == 'k' || (char)key == 'j') {
scroll_mode(key);
}
// TODO: Make a scrollback demo
// else if ((char)key == 'k' || (char)key == 'j') {
// scroll_mode(key);
// }
kevman.broadcast(key);
}
@ -352,13 +354,13 @@ void Keyboard::trigger() {
// - Ereignisverwaltung, wo man Threads registrieren kann
// - Blockierte Threads verwalten und aufwecken bei ereignissen
// Waits for keys to control the scrollback buffer display
void scroll_mode(Key key) {
switch ((char)key) {
case 'k':
kout.scroll_page_backward();
break;
case 'j':
kout.scroll_page_forward();
break;
}
}
// void scroll_mode(Key key) {
// switch ((char)key) {
// case 'k':
// kout.scroll_page_backward();
// break;
// case 'j':
// kout.scroll_page_forward();
// break;
// }
// }