mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 17:53:34 +08:00
posix main: add Home/End to jump to beginning/end
This commit is contained in:
committed by
Beat Küng
parent
d523cb54a5
commit
dfe1b59949
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user