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
+12
View File
@@ -183,3 +183,15 @@ void Emulator::debug_printout( int fd )
swrite( fd, screen.c_str() );
}
std::string Emulator::open( void )
{
char appmode[ 6 ] = { 0x1b, '[', '?', '1', 'h', 0 };
return std::string( appmode );
}
std::string Emulator::close( void )
{
char ansimode[ 6 ] = { 0x1b, '[', '?', '1', 'l', 0 };
return std::string( ansimode );
}