News for hackers. Stuff that matters.
Re:Comprehensive Keyboard Handling in Terminals by donio on Sunday April 02, 2023 @12:57PM (#35412571)
I agree that Emacs would greatly benefit from this feature but "unusable" a overly dramatic. It's an inconvenience. I use Super on the desktop as much as anybody but I manage with remote tty sessions (including termux from phone) just fine. I just make sure that I also have a terminal-friendly binding for anything critical that I have on Super.
Re:Comprehensive Keyboard Handling in Terminals by denotational on Sunday April 02, 2023 @04:18PM (#35414713)
> "unusable" a overly dramatic

Disagree. I used to use Emacs with evil-mode, but I gave up because of this issue.

If I entered `ESC` then `k` (i.e. return to normal mode and move up a line) too quickly on an SSH connection, there was a good chance the `read` syscall on the PTTY file descriptor would return two characters (determined via `strace`) instead of two subsequent calls returning a single character each.

This makes it literally impossible for Emacs to distinguish it from `M-k` (i.e. `kill-line`), so I’d “randomly” see lines deleted before I figured out what was going on.

The effect is a lot more pronounced over SSH where a spike in network latency can cause two subsequent TCP segments to reach the host essentially back-to-back (or even be retransmitted as a single segment), leading to this behaviour of `read` returning two characters.

Re:Comprehensive Keyboard Handling in Terminals by donio on Sunday April 02, 2023 @10:10PM (#35417713)
I see. I don't use the vi modes so it never occurred to me that ESC vs meta would be timing sensitive.
Re:Comprehensive Keyboard Handling in Terminals by jwr on Monday April 03, 2023 @01:12AM (#35418800)
I guess it depends on how many Super shortcuts you use, and for how many years you have been using them. In my case, both numbers are into double digits, so.
Re:Comprehensive Keyboard Handling in Terminals by donio on Monday April 03, 2023 @01:38AM (#35418957)
I count 36 Super bindings and I started using them for Emacs in 2016. I was using them for StumpWM before that.

Some of it is EXWM specific but about half also apply on a tty frame too. My fingers just automatically type the alternate version when needed.

Sorry if it came off too argumentative. I've been on the other side of this plenty, one person's annoyance is another's show stopper.