From dfe1b599499807c88303e0a16587538f66ac0a14 Mon Sep 17 00:00:00 2001 From: ChristophTobler Date: Fri, 12 Jan 2018 14:48:03 +0100 Subject: [PATCH] posix main: add Home/End to jump to beginning/end --- src/platforms/posix/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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) {