fixed: all ready for input-testing
This commit is contained in:
22
src/console_output.h
Normal file
22
src/console_output.h
Normal file
@ -0,0 +1,22 @@
|
||||
#ifndef __CONSOLE_OUTPUT_H__
|
||||
#define __CONSOLE_OUTPUT_H__
|
||||
|
||||
#include <iostream>
|
||||
#include "display.h"
|
||||
|
||||
class console_output final : public display {
|
||||
private:
|
||||
std::ostream &out;
|
||||
std::string get_code(const int attr);
|
||||
public:
|
||||
console_output(std::ostream &new_out);
|
||||
|
||||
void render() override;
|
||||
void clear() override;
|
||||
void print_char(const position &pos,
|
||||
const char ch, const int attr) override;
|
||||
void print_str(const position &pos,
|
||||
const std::string &str, const int attr) override;
|
||||
};
|
||||
|
||||
#endif
|
Reference in New Issue
Block a user