LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1017|回复: 5

请教emacs M-x term中的向后翻阅显示屏幕历史的方法 ?

[复制链接]
发表于 2005-11-18 23:36:43 | 显示全部楼层 |阅读模式
Debian emacs 21.4.1下,M-x term 进入终端仿真模式,可以用C-c C-v向前翻阅显示屏幕历史,根据herberteuler的方法,用 C-c C-h 来查看以 C-c 开头的快捷键,看到了C-c C-v        scroll-up。
问题一:现在我想向后翻阅显示屏幕历史,C-c C-h没找着scroll-back,不知怎样实现?谢谢。
问题二:同样在term中执行程序,想中断它,于是输入C-c C-c,没有反应,C-c C-h 显示为C-c C-c term-send-raw,不是中断程序,那在term中如何终止命令?
谢谢
发表于 2005-11-19 10:51:30 | 显示全部楼层
一、C-c [
二、C-c C-c 在我这里是可以的啊,另请参考 term-send-raw 的说明:
  1. term-send-raw is an interactive compiled Lisp function in `term'.
  2. (term-send-raw)

  3. Send the last character typed through the terminal-emulator
  4. without any interpretation.
复制代码

btw: 这些内容在 C-c C-h 的结果里都有啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-19 12:27:31 | 显示全部楼层
谢谢 herberteuler
一、你指出的C-c [,是回到屏幕输出的总开头,而我想要的功能是和C-c C-v scroll-up相近的每次向后翻一页,即scroll-down.C-c C-v是每次向前翻一页
我在看C-c C-v的帮助时,看到好像能设置负值,可以用C-c C-v 向后翻,所以我写C-c C-v -,C-c - C-v但都没有成功
代码:

  1. Scroll text of current window upward ARG lines; or near full screen if no ARG.
  2. A near full screen is `next-screen-context-lines' less than a full screen.
  3. Negative ARG means scroll downward.
  4. If ARG is the atom `-', scroll downward by nearly full screen.
  5. When calling from a program, supply as argument a number, nil, or `-'.
复制代码
回复 支持 反对

使用道具 举报

发表于 2005-11-19 12:36:48 | 显示全部楼层
参数应该用 C-u 或者 M-<num> 给出吧?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-19 17:52:44 | 显示全部楼层
请教herberteuler,你查看命令的历史输出记录是如何看得呢?每次C-c [ 退到开头,然后再一页一页向后翻吗?
回复 支持 反对

使用道具 举报

发表于 2005-11-19 18:42:26 | 显示全部楼层
你可以把 scroll-down 绑定到某个按键上,或者直接执行它。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表