LinuxSir.cn,穿越时空的Linuxsir!

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

发现在文本模式下如何翻屏!!!

[复制链接]
发表于 2005-9-1 23:24:44 | 显示全部楼层 |阅读模式
以前看man文档时,看到中间时再想回头看看前面的就不行了。。郁闷了,后来用less可以向后翻。现在不用了,可以直接用shift+PageDown/PageUp翻多屏显示的。以下是linuxfaq上原文:
[PHP]How To Scroll Backwards in Text Mode
With the default US keymap, you can use Shift with the PgUp and PgDn
keys. (The gray ones, not the ones on the numeric keypad.) With other
keymaps, look in /usr/lib/keytables. You can remap the ScrollUp and
ScrollDown keys to be whatever you like.

The screen program,
http://vector.co.jp/vpack/browse/person/an010455.html provides a
searchable scrollback buffer and the ability to take "snapshots" of
text-mode screens.

Recent kernels that have the VGA Console driver can use dramatically
more memory for scrollback, provided that the video card can actually
handle 64 kb of video memory. Add the line:

#define VGA_CAN_DO_64B

to the start of the file drivers/video/vgacon.c. This feature may
become a standard setting in future kernels. If the video frame buffer
is also enabled in the kernel, this setting may not affect buffering.

In older kernels, the amount of scrollback is fixed, because it is
implemented using the video memory to store the scrollback text. You
may be able to get more scrollback in each virtual console by reducing
the total number of VC's. See linux/tty.h.
[/PHP]
发表于 2005-9-2 07:14:25 | 显示全部楼层
呵呵,发现新大陆了?
回复 支持 反对

使用道具 举报

发表于 2005-9-2 09:20:49 | 显示全部楼层
你把man内容导入到一个文本文件就可以了
回复 支持 反对

使用道具 举报

发表于 2005-9-2 09:21:31 | 显示全部楼层
man ls | col -b > man.txt
回复 支持 反对

使用道具 举报

发表于 2005-9-4 15:57:24 | 显示全部楼层
呵呵,又是一个技巧
回复 支持 反对

使用道具 举报

发表于 2005-9-4 16:01:43 | 显示全部楼层
了解了
回复 支持 反对

使用道具 举报

发表于 2005-9-5 13:20:51 | 显示全部楼层
我这儿默认的 man 是可以直接按Page Up , PageDown 翻屏的

我机器上的 man 默认是用 less , 也就支持 less 命令

也可以安装 more , 让她用 more 代替
回复 支持 反对

使用道具 举报

发表于 2005-9-5 17:55:20 | 显示全部楼层
当 ls 的内容一屏显示不下时,你们怎么看?
除了把内容导入到一个文件还有其它办法吗?
回复 支持 反对

使用道具 举报

发表于 2005-9-5 17:59:02 | 显示全部楼层
shift+pageUP
shift+pageDown
回复 支持 反对

使用道具 举报

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

本版积分规则

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