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

This commit is contained in:
ChristophTobler
2018-01-12 14:48:03 +01:00
committed by Beat Küng
parent d523cb54a5
commit dfe1b59949

View File

@@ -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) {