[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: How to change status line %W output format

From: Liu, Yuanzhe
Subject: RE: How to change status line %W output format
Date: Fri, 26 Jul 2019 09:19:52 +0000

Thanks for your kindly explain😊.
Now I have synced with upstream and ready for compiler my own screen, my 
current HEAD is "commit 854c3673bb69a07d0ebaa52c2cd31eebaeaaca2c".
But the code seems changed a lot, I can't find the code location you mentioned 
So could you please give me some advice base on my newer code?


-----Original Message-----
From: Amadeusz Sławiński <address@hidden> 
Sent: Friday, July 26, 2019 14:15
To: Liu, Yuanzhe <address@hidden>
Cc: address@hidden
Subject: Re: How to change status line %W output format

On Thu, 25 Jul 2019 11:25:20 +0000
"Liu, Yuanzhe" <address@hidden> wrote:

> Hi,
>       The default %w will get something like "0 zsh 1 zsh ....", but I want 
> to make it to "[0][zsh][1][zsh]....", which will take less place and much 
> more clear for me to find the window I need.
>        Is this possible for version 4.03.01?
> Regards,
> Yuanzhe


if you want instand feedback, it's currently impossible without editing source 

You could replace AddWindows here with your own version:

AddWindows definition:

Another alternative I guess is to use callbacks to print window list, but I 
don't have such script at hand.
You could use
screen -Q windows
and then format it into your desired format, while callback would feed it into 
Problem with it would be that, you wouldn't get instand feedback onto your 
window situation.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]