mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 01:12:31 +00: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