Terminal: Oops, escape sequences for the left and right keys were swapped.

This commit is contained in:
Andreas Kling 2019-01-30 21:20:44 +01:00
commit 2c6a3f1907
Notes: sideshowbarker 2024-07-19 15:54:50 +09:00

View file

@ -136,10 +136,10 @@ int main(int, char**)
case KeyCode::Key_Down: case KeyCode::Key_Down:
write(ptm_fd, "\033[B", 3); write(ptm_fd, "\033[B", 3);
break; break;
case KeyCode::Key_Left: case KeyCode::Key_Right:
write(ptm_fd, "\033[C", 3); write(ptm_fd, "\033[C", 3);
break; break;
case KeyCode::Key_Right: case KeyCode::Key_Left:
write(ptm_fd, "\033[D", 3); write(ptm_fd, "\033[D", 3);
break; break;
default: default: