On Sat, 27 Jul 2019 09:38:47 +0000 "Liu, Yuanzhe" <yuanzhe....@intel.com> wrote:
> Hi, > > I finally got what I want in V4 branch. Thanks for your help 😊. > But I found the color format symbol is not working in master branch, I mean > the "attribute/color modifier" in "String Escape" chapter of manual. Even I > only compiler the master branch without any change, it just not work. > I'm not sure this is a bug or some new feature will come soon. So I Just > write this thing here. > Anyway, thank you again, I'm really glad to code with my own screen now! > Hi, yes, the format on master was changed a bit to accomodate 256 colors and direct colors. I try to keep documentation up to date, but it will need full review before v5 release anyway. Amadeusz > Regards, > Yuanzhe > > -----Original Message----- > From: Amadeusz Sławiński <am...@asmblr.net> > Sent: Saturday, July 27, 2019 00:27 > To: Liu, Yuanzhe <yuanzhe....@intel.com> > Cc: screen-users@gnu.org > Subject: Re: How to change status line %W output format > > On Fri, 26 Jul 2019 09:19:52 +0000 > "Liu, Yuanzhe" <yuanzhe....@intel.com> wrote: > > > 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 now. > > So could you please give me some advice base on my newer code? > > > > Hi, > > the code I referenced is on screen-v4 branch, it is code from which v4 > releases are done, master branch has work towards v5. > > If you want to use mater branch, then look at: > https://git.savannah.gnu.org/cgit/screen.git/tree/src/winmsg.c#n366 > and > https://git.savannah.gnu.org/cgit/screen.git/tree/src/process.c#n5978 > > Amadeusz > > > Regards, > > Yuanzhe > > > > -----Original Message----- > > From: Amadeusz Sławiński <am...@asmblr.net> > > Sent: Friday, July 26, 2019 14:15 > > To: Liu, Yuanzhe <yuanzhe....@intel.com> > > Cc: screen-users@gnu.org > > Subject: Re: How to change status line %W output format > > > > On Thu, 25 Jul 2019 11:25:20 +0000 > > "Liu, Yuanzhe" <yuanzhe....@intel.com> 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 > > > > > > > Hi, > > > > if you want instand feedback, it's currently impossible without editing > > source code. > > > > You could replace AddWindows here with your own version: > > https://git.savannah.gnu.org/cgit/screen.git/tree/src/screen.c?h=scree > > n-v4#n2708 > > > > AddWindows definition: > > https://git.savannah.gnu.org/cgit/screen.git/tree/src/process.c?h=scre > > en-v4#n5512 > > > > 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 screen. > > Problem with it would be that, you wouldn't get instand feedback onto your > > window situation. > > > > Amadeusz > _______________________________________________ screen-users mailing list screen-users@gnu.org https://lists.gnu.org/mailman/listinfo/screen-users