fixed: all ready for input-testing
This commit is contained in:
@ -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} {}
|
||||
|
Reference in New Issue
Block a user