added a few more pieces to the framework, overhauled main.cc

This commit is contained in:
2024-07-03 11:08:55 -04:00
parent 97ff14cd26
commit 6cbeb42144
17 changed files with 416 additions and 61 deletions

View File

@ -11,18 +11,23 @@
#include <vector>
#include "position.h"
#include "constants.h"
#include "cursor.h"
class display final {
private:
std::vector<std::string> contents;
cursor &curs;
public:
display();
display(cursor &s);
void clear();
// use this instead of overloading for clarity
void print(std::ostream &out) const;
void print_line(const std::string &line, const int linenum);
void render() const ;
// will override any character that was there
void print_position(const position &pos, const char ch);
};