在终端中使用emacs时,某些键绑定不起作用 [英] Certain keybindings don't work when using emacs in a terminal

查看:85
本文介绍了在终端中使用emacs时,某些键绑定不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

通过在终端中键入 emacs ,将GNU emacs加载到自己的窗口中。
我喜欢使用pc选择模式的键绑定,它允许您使用向右或向左或向左移动或通过按向上或向下移动来整个行突出显示字符。



问题是当我通过键入 emacs -nw 在终端中运行emacs时,后两个键绑定不起作用。我可以使用左移和右移来突出显示字符,但是按下shift-up和shift-down不会做任何事情。光标停留在它的正下方。



如何解决这个问题?为甚么甚至发生?我使用的是GNU Emacs 23.1.1,我已经确认,当Emacs在自己的窗口中,当Emacs在终端内部运行时,我使用了相同的版本。



感谢任何帮助

解决方案

许多次绑定只是没有列出,或被映射错误。您可以尝试M-x show-lossage(或C-h l)来查看转义序列是否到达emacs。如果这样做,您可能需要尝试 xterm-extras - 它一直在我迁移时工作在不同版本的linux和solaris之间,以及它们之间的ssh(通常是问题的根源)。


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

解决方案

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).

这篇关于在终端中使用emacs时,某些键绑定不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆