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.
Terminal Emulator
Terminal.app on macOS 13.1
The text was updated successfully, but these errors were encountered:
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.
Description
When the terminal uses a different control character for EOF, it's not respected by reline.
By comparison with readline:
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.With reline:
I type a, then ^A to go at the beginning of the line, then ^D to remove the
a
, the second ^D 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.Terminal Emulator
Terminal.app on macOS 13.1
The text was updated successfully, but these errors were encountered: