Gnu screen GNU屏幕中活动布局的显示名称

Gnu screen GNU屏幕中活动布局的显示名称,gnu-screen,Gnu Screen,我的GNU屏幕中有多个布局。是否可以在屏幕的状态栏中显示当前使用的布局的名称?也许,这就是您需要的 # the following two lines give a two-line status, with the current window highlighted hardstatus alwayslastline hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%

我的GNU屏幕中有多个布局。是否可以在屏幕的状态栏中显示当前使用的布局的名称?

也许,这就是您需要的

# the following two lines give a two-line status, with the current window highlighted
hardstatus alwayslastline
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]'
资料来源:

样本:


您可以始终使用
Ctrl
+
A
,然后键入
:layout show
,但听起来好像您要求版面标题始终在那里,而不需要额外的命令。使用@kichik的注释,我可以在更改版面的同时显示版面
bindkey“^[[15~“eval”layout prev”“layout show”
bindkey“^[[17~“eval”layout next”“layout show”
我使用此解决方案高亮显示当前窗口的名称。但是,我需要显示并高亮显示当前布局的名称。