当我在Mac上的终端上执行ri ...时,我得到50个空行,然后是我期待的输出,然后是最后一行:
(END)
,(END)在黑色背景上显示白色字母。我没有回到bash,但是 - ri仍在运行,我无法输入任何东西。还有,为什么所有的空行?
为什么会这样?
答案 0 :(得分:5)
输出通过寻呼机传输(环境变量$PAGER
的值,可能是/usr/bin/more
或/usr/bin/less
)。这允许您通过点击空格键(以及其他不错的功能)来浏览屏幕数据,而不必在终端中向上和向下滚动。要退出,只需输入 q 。
答案 1 :(得分:2)
alias ri='/usr/local/bin/ri -T' # -T == --no-pager ... Send output directly to stdout, rather than to a pager. Pagers are damned annoying when the info you need disappears when you still need to see it ...