1

disable extra stuff (allocator, scrollbackbuffer)

This commit is contained in:
2022-07-04 13:21:09 +02:00
parent 8e7a0df43c
commit c043ae9df1
4 changed files with 20 additions and 18 deletions

View File

@ -340,9 +340,10 @@ 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);
}
// else if ((char)key == 'k' || (char)key == 'j') {
// scroll_mode(key);
// }
}
// TODO: Where to place this?
@ -350,13 +351,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;
// }
// }