fixed: all ready for input-testing

This commit is contained in:
2024-07-05 19:31:09 -04:00
parent 13519b619d
commit b792b0a8e7
7 changed files with 193 additions and 39 deletions

View File

@ -1,21 +1,4 @@
#include "display.h"
display::display(): contents{DISPLAY_HEIGHT} {}
void display::clear() {
for (auto line : contents)
line.clear();
}
void display::print(std::ostream &out) const {
for (auto line : contents)
out << line;
}
void display::print_line(const std::string &line, const int linenum) {
contents[linenum] = line;
}
void display::print_position(const position &pos, const char ch) {
contents[pos.y][pos.x] = ch;
}
display::display():
contents{DISPLAY_BUFFER_SIZE, 0} {}