When changing tabs anything that exists in the command line gets executed
which can be very dangerous.
Details
- Reviewers
cullmann - Group Reviewers
Kate - Commits
- R40:f42f5b1137aa: Clear konsole command-line before send cd command
Pls see D9590
Diff Detail
- Lint
Lint Skipped - Unit
Unit Tests Skipped
That was my hope
and is this ok for any posix shell?
My source was this general looking question. But reading there indicate that they all refer to Bash :-/
https://stackoverflow.com/questions/9679776/how-do-i-clear-delete-the-current-line-in-terminal
OTH is there https://www.unix.com/man-page/All/1posix/sh some vi mode described.
kill Clear all the characters from the input line.
Whatever that means. "less" at least works here similar. No Guru around? :-)
And, isn't Kate also running on Windows? What's then?
This is not an issue on Windows (yet?) as the whole konsole plugin is disabled on Windows.
Ctrl-U is "Cut everything before the cursor", so if you have moved the cursor to the beginning of the line nothing is removed...
So we would need to send Ctrl-E before Ctrl-U.
I tried these with sh and I could remove the line with Ctrl-U.
I think there is always going to be some corner case where this will not work, but better than nothing?....