You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I type a, then ^A to go at the beginning of the line, then ^D to remove the a, the second ^D doesn't do anything, but ^K sends the end-of-file and ends the process.
I type a, then ^A to go at the beginning of the line, then ^K removes until the end of the line (kill-line), the second ^K sends the end-of-file and ends the process.
I type a, then ^A to go at the beginning of the line, then ^K removes until the end of the line (kill-line), the second ^K doesn't do anything, but ^D sends the end-of-file and ends the process.
I don't have a real world use case, I personally don't modify stty like this.
I was just curious because I was trying to get the Del key in emacs mode to work like readline. Reline::ANSI::CAPNAME_KEY_BINDINGS["kdch1"] = :em_delete in my .irbrc mostly worked, but now the Del key was also behaving like Ctrl-D for end-of-file. To fix this I can hardcode Ctrl-D but I investigated a bit more to understand where Ctrl-D was coming from and if I could avoid hardcoding.
So for now I pushed #504, hard-coding Ctrl-D for EOF.
Activity
hasumikin commentedon Jan 18, 2023
It reproduces on Linux, too.
That's because Reline doesn't handle stty's modification, I guess.
@etiennebarrie
Could you tell me if there is some real-world troublesome case when the EOF attribute is modified?
etiennebarrie commentedon Jan 18, 2023
I don't have a real world use case, I personally don't modify stty like this.
I was just curious because I was trying to get the Del key in emacs mode to work like readline.
Reline::ANSI::CAPNAME_KEY_BINDINGS["kdch1"] = :em_deletein my.irbrcmostly worked, but now the Del key was also behaving like Ctrl-D for end-of-file. To fix this I can hardcode Ctrl-D but I investigated a bit more to understand where Ctrl-D was coming from and if I could avoid hardcoding.So for now I pushed #504, hard-coding Ctrl-D for EOF.