Handle cursor key mode (application vs. ANSI). "less" now works.

This commit is contained in:
Keith Winstein
2011-02-03 03:56:02 -05:00
parent 4ca5b35d7d
commit 5a3c4a201b
9 changed files with 41 additions and 14 deletions
+4 -6
View File
@@ -7,17 +7,15 @@
namespace Terminal {
class UserInput {
private:
bool last_byte;
bool application_mode_cursor;
short last_byte;
public:
UserInput()
: last_byte( 0 ),
application_mode_cursor( false )
: last_byte( -1 )
{}
std::string input( Parser::UserByte *act );
void set_cursor_application_mode( bool mode ) { application_mode_cursor = mode; }
std::string input( Parser::UserByte *act,
bool application_mode_cursor_keys );
};
}