fkeyboard_test fix

This commit is contained in:
Markus Gans 2018-11-24 03:22:47 +01:00
parent ca90fb64bd
commit 6c4ba7af89
2 changed files with 3 additions and 4 deletions

View File

@ -238,8 +238,6 @@ void FTermcap::termcapStrings (char*& buffer)
tcap[i].string = tgetstr(tcap[i].tname, &buffer);
}
//----------------------------------------------------------------------
void FTermcap::termcapKeys (char*& buffer)
{

View File

@ -51,6 +51,7 @@ fkeymap Fkey[] =
{ finalcut::fc::Fkey_clear , 0 , "kC" }, // clear-screen or erase key
{ finalcut::fc::Fkey_ctab , C_STR(CSI "3~") , "kt" }, // clear-tab key
{ finalcut::fc::Fkey_dc , 0 , "kD" }, // delete-character key
{ finalcut::fc::Fkey_dc , 0 , "kDx" }, // delete-character key
{ finalcut::fc::Fkey_dl , 0 , "kL" }, // delete-line key
{ finalcut::fc::Fkey_down , C_STR(ESC "OB") , "kd" }, // down-arrow key
{ finalcut::fc::Fkey_down , C_STR(CSI "B") , "kdx"}, // down-arrow key
@ -412,10 +413,10 @@ void FKeyboardTest::severalKeysTest()
void FKeyboardTest::functionKeyTest()
{
// Function key F1 (numeric keypad PF1)
input("\033[2~");
input("\033OP");
processInput();
std::cout << " - Key: " << keyboard->getKeyName(key_pressed) << std::endl;
CPPUNIT_ASSERT ( key_pressed == finalcut::fc::Fkey_ic );
CPPUNIT_ASSERT ( key_pressed == finalcut::fc::Fkey_f1 );
clear();
// Function key F1