local navigation
[oftp] / src / unix / input.c
index 92c1dcc..f39c04f 100644 (file)
@@ -35,9 +35,16 @@ static int convkey(int key)
                return KB_PGUP;
        case KEY_NPAGE:
                return KB_PGDN;
+       case KEY_ENTER:
+               return '\n';
+       case KEY_BACKSPACE:
+               return '\b';
        default:
                break;
        }
+       if(key >= KEY_F(1) && key <= KEY_F(12)) {
+               return KB_F1 + (key - KEY_F(1));
+       }
        if(key < 128) {
                return key;
        }