1

let init decide scrollback size

This commit is contained in:
churl
2022-05-14 21:13:11 +02:00
parent 13df44fb6f
commit 19f58a5b4b
2 changed files with 7 additions and 7 deletions

View File

@ -2,11 +2,11 @@
// Can't initialize in constructor as memory management already needs working CGA for output
// NOTE: This has to be called when memorymanagement is active
void BufferedCGA::init() {
this->scrollback_buffer = new ScrollbackBuffer(COLUMNS, ROWS, 5);
void BufferedCGA::init(unsigned int pages) {
this->scrollback_buffer = new ScrollbackBuffer(COLUMNS, ROWS, pages);
this->initialized = true;
this->print("\nInitialized scrollback buffer with 5 pages\n\n", 45);
this->print("\nInitialized scrollback buffer\n\n", 32);
}
void BufferedCGA::displaypage() {