1

change printed output

This commit is contained in:
2022-05-23 09:10:45 +02:00
parent 1673a16985
commit 569dc718e2
2 changed files with 19 additions and 22 deletions

View File

@ -7,12 +7,12 @@ void BufferedCGA::init(unsigned int pages) {
this->screen_buffer = new CGA::cga_page_t;
if (this->scrollback_buffer == NULL || this->screen_buffer == NULL) {
this->print("\nError initializing scrollback buffer\n\n", 39);
this->print("Error initializing scrollback buffer\n", 39);
return;
}
this->initialized = true;
this->print("\nInitialized scrollback buffer\n\n", 32);
this->print("Initialized scrollback buffer\n", 32);
}
void BufferedCGA::display_scrollback() {
@ -25,7 +25,7 @@ void BufferedCGA::display_scrollback() {
this->scrollback_buffer->get((cga_line_t*)CGA_START, this->scrollback - 1);
}
} else {
this->print("ScrollbackBuffer not initialized\n\n", 34);
this->print("ScrollbackBuffer not initialized\n", 34);
}
}
@ -44,7 +44,7 @@ void BufferedCGA::scrollup() {
if (this->initialized) {
this->scrollback_buffer->put((cga_line_t*)CGA_START);
} else {
this->print("ScrollbackBuffer not initialized\n\n", 34);
this->print("ScrollbackBuffer not initialized\n", 34);
}
CGA::scrollup();
@ -58,7 +58,7 @@ void BufferedCGA::clear() {
this->scrollback_buffer->clear();
mmem::zero<CGA::cga_page_t>(this->screen_buffer);
} else {
this->print("ScrollbackBuffer not initialized\n\n", 34);
this->print("ScrollbackBuffer not initialized\n", 34);
}
}
@ -77,7 +77,7 @@ void BufferedCGA::scroll_page_backward() {
}
this->display_scrollback();
} else {
this->print("ScrollbackBuffer not initialized\n\n", 34);
this->print("ScrollbackBuffer not initialized\n", 34);
}
}
@ -89,6 +89,6 @@ void BufferedCGA::scroll_page_forward() {
}
this->display_scrollback();
} else {
this->print("ScrollbackBuffer not initialized\n\n", 34);
this->print("ScrollbackBuffer not initialized\n", 34);
}
}