Skip to content
Snippets Groups Projects
Commit dfe1b599 authored by ChristophTobler's avatar ChristophTobler Committed by Beat Küng
Browse files

posix main: add Home/End to jump to beginning/end

parent d523cb54
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment