相关疑难解决方法(0)

如何将会话名称添加到我的屏幕状态显示中?

这是我当前的 .screenrc 文件,它主要是从代码中的链接复制的

#First iteration 2014-09-06, not quite sure of stuff to add
# got a fancy hardstatus line noted below
hardstatus on
hardstatus alwayslastline
# hardstatus string "%w"

# blagged this hardstatus like from https://bbs.archlinux.org/viewtopic.php?id=55618, not quite sure what it does
hardstatus string '%{= kG}%{C}Screen: %{c}%{= kG}[%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][%{C} %d-%m %{W}%c %{g}]'
Run Code Online (Sandbox Code Playgroud)

我现在希望会话名称也出现在其中,我已经确定的一个来自这个答案 - https://superuser.com/questions/212392/how-to-include-screens-session-name-in -hardstatus/212520#212520

该解决方案沿着以下路线运行:

hardstatus string '%H:%`'
backtick 0 30 30 sh -c 'screen -ls | grep --color=no -o "$PPID[^[:space:]]*"'
Run Code Online (Sandbox Code Playgroud)

这是一个我不熟悉的领域,我想知道backtick命令如何适应它,即它到底是不是一个screen命令。

gnu-screen

5
推荐指数
1
解决办法
1368
查看次数

标签 统计

gnu-screen ×1