[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: . is undefined (when pressing C-.): is ssh behaving odd?

From: Yuri Khan
Subject: Re: . is undefined (when pressing C-.): is ssh behaving odd?
Date: Tue, 7 Dec 2021 01:02:19 +0700

On Tue, 7 Dec 2021 at 00:25, Robert Pluim <> wrote:

>>> tty's canʼt produce 'C-.'

This is technically correct if one limits oneself to a hardware
terminal made half a century ago, or even to a Linux TTY.

> There are limitations to the keys that can be produced when using a
> tty (such as when youʼre logged in over ssh, or running 'emacs
> -nw'). One of those is that certain Ctrl combinations simply won't
> work: C-. is one of them.  There is no fix: itʼs an inherent
> limitation of the tty technology.

The fix is to use a terminal emulator that implements extended key
codes, to opt in to such a protocol extension, and to teach Emacs to
decode that.

Here’s one such extension.

(No, I don’t have a functional term/xterm-kitty.el right now. Maybe
one day, when/if I get fed up with X11 forwarding over a
less-than-lightspeed ssh connection.)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]