gpt4 book ai didi

gnu-screen - 如何在 GNU Screen hardstatus 中显示之前选择的选项卡?

转载 作者:行者123 更新时间:2023-12-04 17:39:13 27 4
gpt4 key购买 nike

每次我在控制台中工作时,我都会使用 GNU Screen。我有一个习惯
.screenrc 文件有几个设置。其中,我有这样的设置
在底部显示“标签”:

hardstatus alwayslastline
hardstatus string "%{= g} %{= w}%-w%{=r}%n %t%{-}%+W"

它运行良好,但我想在选项卡中添加一些符号来显示什么
选项卡以前处于事件状态。如何才能做到这一点?

最佳答案

唉,评论只支持一点格式化能力,所以我创建了一个新答案。

1) There is some '$' symbol after every tab number that are not needed



hardstatus string "%{= g} %{= w}%-Lw%{=r}%n%f* %t%{-}%+LW"我看不到任何“$”:

enter image description here

2) the symbols '' and '-' make the tab one symbol wider and because of that the tabs jumps a little. I think it can be solved by placing space if there is no '' and '-' symbols.



唉,除了选择的所有选项卡都没有配置 - 它们只是在 %w 时显示(所有窗口包括当前)或 %W (除 current 之外的所有窗口)都用于 hardstatus 字符串。这些转义可以在前面加上 -+ (在当前窗口之前或之后显示窗口)和 L (显示窗口的标志)。无法配置行的这些部分的空格、格式或内容——它们只有标签编号、标题和可选的带有固定缩进的标志。

3) The symbol '*' is not needed because there is also a color selection of the current tab.



当然,您可以替换 *后有空格 %f在带有两个空格的 hardstatus 字符串中(对不起,奇怪的句子,但 SO 文本引擎奇怪地吃反引号中的空格) - 但没有调整非事件和非最后一个选项卡的选项卡编号后的空格,它们继续“跳转”。

关于gnu-screen - 如何在 GNU Screen hardstatus 中显示之前选择的选项卡?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8367796/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com