Handle user input through terminal

This commit is contained in:
Keith Winstein
2011-02-03 03:19:06 -05:00
parent 37c61f811b
commit bab4f23b44
8 changed files with 102 additions and 31 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef TERMINALUSERINPUT_HPP
#define TERMINALUSERINPUT_HPP
#include <string>
#include "parseraction.hpp"
namespace Terminal {
class UserInput {
private:
bool last_byte;
bool application_mode_cursor;
public:
UserInput()
: last_byte( 0 ),
application_mode_cursor( false )
{}
std::string input( Parser::UserByte *act );
void set_cursor_application_mode( bool mode ) { application_mode_cursor = mode; }
};
}
#endif