diff --git a/src/platforms/posix/main.cpp b/src/platforms/posix/main.cpp index be69163a83..3ccf0b36e2 100644 --- a/src/platforms/posix/main.cpp +++ b/src/platforms/posix/main.cpp @@ -588,6 +588,15 @@ int main(int argc, char **argv) } break; + + } else if (c == 'H') { // Home (go to the beginning of the command) + cursor_position = mystr.length(); + break; + + } else if (c == 'F') { // End (go to the end of the command) + cursor_position = 0; + break; + } if (buf_ptr_read < 0) {