Add missed Terminal::Complete source files

This commit is contained in:
Keith Winstein
2011-08-13 15:54:46 -04:00
parent 9eb6131b57
commit 71e22ee041
2 changed files with 58 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#ifndef COMPLETE_TERMINAL_HPP
#define COMPLETE_TERMINAL_HPP
#include "parser.hpp"
#include "terminal.hpp"
/* This class represents the complete terminal -- a UTF8Parser feeding Actions to an Emulator. */
namespace Terminal {
class Complete {
private:
Parser::UTF8Parser parser;
Terminal::Emulator terminal;
public:
Complete( size_t width, size_t height ) : parser(), terminal( width, height ) {}
std::string act( const std::string &str );
std::string act( const Parser::Action *act );
std::string open( void ) { return terminal.open(); }
std::string close( void ) { return terminal.close(); }
const Framebuffer & get_fb( void ) { return terminal.get_fb(); }
};
}
#endif