[20150529]man tmux less.txt

[20150529]man tmux less.txt

--在linux下有一个小问题(我测试几个版本都存在这个问题),如果在tmux下使用man显示文档时,如果按q退出,会清除屏幕显示.导致我无
--法根据文档打入命令,我希望在退出后屏幕的显示信息保留在屏幕上.

--如果不在tmux下使用正常.

--最先想到的是终端仿真的问题.
--在tmux下:
$  echo $TERM
screen

--一般putty登陆:
#  echo $TERM
linux

--一直想从上面终端仿真上找原因,能力有效放弃.

$  pstree -a

|-tmux new-sessio -s 89
  |   |-bash
  |   |-bash
  |   |-bash
  |   |   `-pstree -a
  |   `-bash
  |       `-man ps
  |           `-sh -c ...
  |               `-sh -c ...
  |                   `-less -is

--首先想到的是不使用less过滤.

export PAGER=/bin/more

--昏!方向键不能使用.没有办法,看一下less手册.

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

--应该是这个参数,我估计可以.

export PAGER='/usr/bin/less -isX'

--测试通过.

--剩下的问题是如何修改配置呢?
$  rpm -qc man
/etc/man.config

--很简单修改/etc/man.config文件就ok了.
PAGER       /usr/bin/less -is
BROWSER     /usr/bin/less -is
--修改为:
PAGER       /usr/bin/less -isX
BROWSER     /usr/bin/less -isX

时间: 2024-07-30 10:47:45

[20150529]man tmux less.txt的相关文章

[20141225]学习使用tmux心得.txt

[20141225]学习使用tmux心得.txt --前一段时间由于工作需要,学习使用tmux. tmux is a "terminal multiplexer". It allows a number of terminals (or windows) to be accessed and controlled from a single terminal. It is intended to be a simple, modern, BSD-licensed alternative

[20150422]tmux bash_completion.txt

[20150422]tmux bash_completion.txt --正在学习tmux,需要一个命令补全程序,找了很久,源码自带的太简单,不是很好用. --找了N久,发现别人配置的,链接如下: https://github.com/aziz/dotfiles/blob/master/bash/completion/tmux.completion.bash #!/bin/bash # tmux completion # See: http://www.debian-administration

[20150425]tmux学习心得2.txt

[20150425]tmux学习心得2.txt --学习使用tmux有一段时间,本来不想在这个上面花太多时间的,自己还抽空看了2篇电子书籍: Apress.tmux.Taster.1484207769.pdf Pragmatic.tmux.Feb.2012.pdf -- 自己总结一下学习心得: 1.关于prefix key: --我前面提到我最终选择ctrl+a作为prefix key.实际上要避开冲突有一定难度. prefix key 的缺省定义是ctrl-b,实际上有一些修改成ctrl-a或

[20170119]tmux与环境变量.txt

[20170119]tmux与环境变量.txt tmux是我的最爱,我基本登录linux马上切换到tmux,进行多屏幕的管理操作.最近遇到1个与环境变量有关的问题. 1.环境: $ cat /etc/issue Oracle Linux Server release 5.9 Kernel \r on an \m $  tmux  -V tmux 1.6 --//我使用tmux版本并不高. 2.建立环境变量: --//linux 会话1 $ export AAA=1111 $ echo $AAA

[20150529]使用bbed解决丢失的归档.txt

[20150529]使用bbed解决丢失的归档.txt -- 以前跟别人探讨过这个问题,我个人的观点通过bbed等手段来跳过丢失的归档来恢复存在许多问题. -- 我以前个人的主张是通过别的手段抽取数据文件的数据,结合logminer来重新整合数据.但是如果抽取的logminer很多,会非常麻烦. --实际上无论那种方式,都存在许多问题,这里通过例子来说明bbed如何解决跳过丢失的归档. 1.测试环境建立: SCOTT@test> @ &r/ver1 PORT_STRING          

[20150529]ORA-16664.txt

[20150529]ORA-16664.txt --今天在例行检查中.执行 dgmgrl 出现ora-16664错误. --检查drcdbcn1.log文件,发现如下错误. 05/25/2015 16:34:58 Site dbcndg returned ORA-16664. Site dbcndg2 returned ORA-16664. Data Guard Broker Status Summary:   Type                        Name          

[20170711]关于tmux共享会话问题.txt

[20170711]关于tmux共享会话问题.txt --//星期6,7看了一些tmux相关数据,学习如何共享会话,老外给它起一个很好听的名字叫做结对编程(Pair Programming). --//参考书籍Pragmatic.Bookshelf.tmux.2.Productive.Mouse-Free.Development.1680502212.pdf 1.做简单的方法: --session 1 : $ tmux --session 2 : $ tmux attach 2.上面例子很简单,

[20170708]tmux script例子.txt

[20170708]tmux script例子.txt --//上个星期解决rac ora-12514问题时,因为要打开多个窗口,非常麻烦,利用星期6,7看了一些文档,写一个tmux script: --//便于以后工作需要: #! /bin/bash tmux has-session -t oracle if [ $? != 0 ]; then   tmux new-session -s oracle -d   tmux new-window -n bashgrid -t oracle   t

[20150427]tmux与INPUTRC定义冲突.txt

[20150427]tmux与INPUTRC定义冲突.txt --我前一阵子发现在tmux里面一些按键与INPUTRC冲突. 我的/etc/inputrc定义如下: "\e[1~": beginning-of-line    # home "\e[2~": yank-last-arg        # insert "\e[3~": delete-char          # delete "\e[4~": end-of-l