在终端中使用 emacs 时,某些键绑定不起作用

发布于 2024-10-02 07:43:48 字数 354 浏览 0 评论 0原文

我通过在终端中输入 emacs 在它自己的窗口中加载 GNU emacs。 我喜欢使用 pc-selection-mode 中的键绑定,它允许您使用右移或左移来突出显示字符,或者通过按上移或下移来突出显示整行。

问题是,当我在终端中输入 emacs -nw 运行 emacs 时,后两个键绑定不起作用。我可以使用左移和右移来突出显示字符,但按上移和下移不会执行任何操作。光标停留在原来的位置。

我该如何解决这个问题?为什么它会发生?我正在使用 GNU Emacs 23.1.1,并且我已经确认,当 emacs 在它自己的窗口中以及当 emacs 在终端内运行时,都使用相同的版本。

感谢您的帮助

I load GNU emacs in it's own window by typing emacs in the terminal.
I like to use the keybindings from pc-selection-mode, which allows you to highlight characters using shift-right or shift-left, or entire lines by pressing shift-up or shift-down.

The problem is that when I run emacs in the terminal by typing emacs -nw, the latter 2 keybindings don't work. I can highlight characters using shift-left and shift-right, but pressing shift-up and shift-down doesn't do anything. The cursor stays where it is.

How do I fix this problem? Why is it even occurring? I'm using GNU Emacs 23.1.1, and I've confirmed that the same version is being used both when emacs is in it's own window and when emacs is running inside the terminal.

Thanks for any help

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

顾冷 2024-10-09 07:43:48

很多时候,绑定没有列出,或者映射错误。您可以尝试 Mx show-lossage (或 Ch l)来查看转义序列是否到达 emacs。如果他们这样做,您可能想尝试 xterm-extras - 即使我迁移它也总是有效在不同版本的linux和solaris之间,以及我在它们之间进行ssh(这通常是问题的根源)。

A lot of times the bindings just aren't listed, or are mapped wrong. You can try M-x show-lossage (or C-h l) to see if the escape sequences reach emacs or not. If they do, you might want to try xterm-extras -- it's always worked even as I migrate between different versions of linux and solaris, and as I ssh between them (which is often a source of problems).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文