从xterm的少退出后终端保持页 [英] xterm keep page from less in terminal after exit

查看:251
本文介绍了从xterm的少退出后终端保持页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常查看使用较少的文件,并要记住我刚才看到的文件中。然而,当我退出较少受到pressing q键我的xterm窗口中删除少的页面显示文件,只显示我的命令提示符窗口。

I often view files using less and want to remember what i have just seen in the file. However when I quit less by pressing the q key my xterm window removes the page of less showing the file and only shows my command prompt.

我如何保持我的终端输出少,当我退出?

How do I keep the less output on my terminal when I quit?

推荐答案

少-X

从下面描述的少手册页使用-X选项

Use the -X option from the less man page described below:

   -X or --no-init
          Disables  sending  the  termcap  initialization and deinitialization strings to the terminal.
          This is sometimes desirable if the deinitialization string does something  unnecessary,  like
          clearing the screen.

这篇关于从xterm的少退出后终端保持页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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