Add partial support for VERASE and VWERASE in canonical mode in PTYs#9950
Add partial support for VERASE and VWERASE in canonical mode in PTYs#9950copybara-service[bot] merged 1 commit intogoogle:masterfrom
Conversation
|
Thanks for all the PRs! As with the other PRs, a test would be appreciated. For example, recently I checked in a PTY fix along with a syscall test in f82d97c. You can run the syscall test against Linux with: |
c8d28e3 to
9b9d06b
Compare
|
Could you also squash your commits in each PR? When copybara merges this, it applies all the commits onto master (without squashing them). |
|
Will do. Thanks for providing instructions on how to run the syscall tests! |
NP. Running the syscall test directly with bazel may (annoyingly) fail. We have this entire Makefile business going on, in which all bazel commands are run via a bazel Docker container (implemented in tools/bazel.mk). |
kevinGC
left a comment
There was a problem hiding this comment.
Thanks again for another PR. More comments this time!
Also, we should probably have a simple test for each of VERASE and VWERASE that check that inputing backspace or CTRL+W will have the desired effect.
93ebd87 to
a521ac5
Compare
|
I've added some tests, fixed a bug ( Thank you for all your feedback -- I don't actually know Golang so your style suggestions, etc. are very helpful! Please let me know if there's anything else I should change or clarify. |
kevinGC
left a comment
There was a problem hiding this comment.
Good changes, just a few more things.
6c4deba to
5813adc
Compare
|
Thanks again for your feedback! I:
Apologies, I must not have run tests properly last night; they should have caught the first two issues. |
|
LGTM and thanks for the PR. |
5813adc to
dc2b10a
Compare
dc2b10a to
0a81809
Compare
This PR partially fixes #9949 by porting over some code from the Linux kernel's
n_tty_receive_char_canon, specifically theeraserfunction.It adds partial support for VERASE (backspace) and VWERASE (word erase with ctrl+w).