GNU屏幕命令未显示状态栏 [英] GNU screen command not showing status bar

查看:101
本文介绍了GNU屏幕命令未显示状态栏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是GNU屏幕命令的新手.我在主目录中创建了.screenrc文件,并将其添加到了以下两行()以显示状态栏.

caption always
caption string "%{= bW}%3n %{y}%t %{-}%= %{m}%H%?%{-} -- %{c}%l%?%{-} -- %D %M %d %{y}%c"

但是我没有看到状态栏(进入屏幕模式后).

运行source .screenrc时,出现错误"-bash: caption: command not found".

我在这里想念什么?

I am new to GNU screen command. I created .screenrc file in my home directory and added below two lines(source) to display the status bar.

caption always
caption string "%{= bW}%3n %{y}%t %{-}%= %{m}%H%?%{-} -- %{c}%l%?%{-} -- %D %M %d %{y}%c"

but I am not seeing the status bar(after entering into screen mode).

When I run source .screenrc, I am getting error "-bash: caption: command not found".

What am I missing here?

推荐答案

问题是,我已经启动屏幕,然后在主目录中添加了文件.screenrc,但是活动屏幕无法识别.screenrc文件.

因此我被杀死所有活动的屏幕会话,然后声明新的屏幕会话(screen).现在我可以看到状态栏.

Problem was that, I already started screen and then added the file .screenrc in my home directory, but active screens are not recognizing the .screenrc file.

so I killed all active screen sessions and then stated new screen session (screen). Now I am able to see the status bar.

这篇关于GNU屏幕命令未显示状态栏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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