windowlist string & title not working with -d -m

View: New views
5 Messages — Rating Filter:   Alert me  

windowlist string & title not working with -d -m

by Peder Stray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Not that often i start screen with -d -m, but i did today and noticed that
some settings wasn't used from my .screenrc, namely "windowlist string"
and "windowlist title".  Looking through the source i notice that
windowlist has the NEED_DISPLAY flag in comms (in comm.c).  Guess thats
not 100% correct as the sting and title subcommands doesn't need a screen
to work, but the other does.  Not sure how to fix it the right way, but
removing NEED_DISPLAY from the flags does at least set those strings when
using -d -m.

--
   Peder Stray


_______________________________________________
screen-users mailing list
screen-users@...
http://lists.gnu.org/mailman/listinfo/screen-users

Re: windowlist string & title not working with -d -m

by Sadrul Habib Chowdhury :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Peder Stray had this to say on [09 Nov 2009, 21:44:46 +0100]:

>
> Not that often i start screen with -d -m, but i did today and noticed
> that some settings wasn't used from my .screenrc, namely "windowlist
> string" and "windowlist title".  Looking through the source i notice that
> windowlist has the NEED_DISPLAY flag in comms (in comm.c).  Guess thats  
> not 100% correct as the sting and title subcommands doesn't need a screen
> to work, but the other does.  Not sure how to fix it the right way, but  
> removing NEED_DISPLAY from the flags does at least set those strings when
> using -d -m.
>

Indeed. It has long been fixed in the code (commit b90451c8a, dated
May 2006). You can get the latest code (with a whole lot of other
fixes and features) here: http://git.savannah.gnu.org/cgit/screen.git

Cheers,
Sadrul


_______________________________________________
screen-users mailing list
screen-users@...
http://lists.gnu.org/mailman/listinfo/screen-users

Re: windowlist string & title not working with -d -m

by Peder Stray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 9 Nov 2009, Sadrul Habib Chowdhury wrote:

> * Peder Stray had this to say on [09 Nov 2009, 21:44:46 +0100]:
>
>> Not that often i start screen with -d -m, but i did today and noticed
>> that some settings wasn't used from my .screenrc, namely "windowlist
>> string" and "windowlist title".  Looking through the source i notice
>> that windowlist has the NEED_DISPLAY flag in comms (in comm.c).  Guess
>> thats not 100% correct as the sting and title subcommands doesn't need
>> a screen to work, but the other does.  Not sure how to fix it the right
>> way, but removing NEED_DISPLAY from the flags does at least set those
>> strings when using -d -m.
>
> Indeed. It has long been fixed in the code (commit b90451c8a, dated May
> 2006). You can get the latest code (with a whole lot of other fixes and
> features) here: http://git.savannah.gnu.org/cgit/screen.git

Ah, good, but shouldn't there be a release soon as its over 3 years since
last?

And while we talk about bleeding edge screen... is there a way to use the
session-name in the config file to load session-spesific settings?  Right
now i use export SESSION=foo; screen -S $SESSION and use $SESSION in the
config, but it's a bit hacky.

--
   Peder Stray


_______________________________________________
screen-users mailing list
screen-users@...
http://lists.gnu.org/mailman/listinfo/screen-users

Re: windowlist string & title not working with -d -m

by Sadrul Habib Chowdhury :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

* Peder Stray had this to say on [09 Nov 2009, 23:45:43 +0100]:

> On Mon, 9 Nov 2009, Sadrul Habib Chowdhury wrote:
>
>> * Peder Stray had this to say on [09 Nov 2009, 21:44:46 +0100]:
>>
>>> Not that often i start screen with -d -m, but i did today and noticed
>>> that some settings wasn't used from my .screenrc, namely "windowlist  
>>> string" and "windowlist title".  Looking through the source i notice  
>>> that windowlist has the NEED_DISPLAY flag in comms (in comm.c).  
>>> Guess thats not 100% correct as the sting and title subcommands
>>> doesn't need a screen to work, but the other does.  Not sure how to
>>> fix it the right way, but removing NEED_DISPLAY from the flags does
>>> at least set those strings when using -d -m.
>>
>> Indeed. It has long been fixed in the code (commit b90451c8a, dated May
>> 2006). You can get the latest code (with a whole lot of other fixes and
>> features) here: http://git.savannah.gnu.org/cgit/screen.git
>
> Ah, good, but shouldn't there be a release soon as its over 3 years since
> last?

We need help mostly for the documentation update. Contributions are very
welcome!

> And while we talk about bleeding edge screen... is there a way to use the
> session-name in the config file to load session-spesific settings?  Right
> now i use export SESSION=foo; screen -S $SESSION and use $SESSION in the  
> config, but it's a bit hacky.
>

With the very latest pair of commits, you can use ${PID} and/or ${STY} in
your screenrc (whichever meets your needs in your script). Or did I
misunderstand your question?

Sadrul


_______________________________________________
screen-users mailing list
screen-users@...
http://lists.gnu.org/mailman/listinfo/screen-users

Re: windowlist string & title not working with -d -m

by Peder Stray :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Mon, 9 Nov 2009, Sadrul Habib Chowdhury wrote:

>> And while we talk about bleeding edge screen... is there a way to use
>> the session-name in the config file to load session-spesific settings?
>> Right now i use export SESSION=foo; screen -S $SESSION and use $SESSION
>> in the config, but it's a bit hacky.
>
> With the very latest pair of commits, you can use ${PID} and/or ${STY}
> in your screenrc (whichever meets your needs in your script). Or did I
> misunderstand your question?

Unless it has been changed, $STY does contain the pid too. but if its just
the session name in the new screen, that would work just fine.

--
   Peder Stray


_______________________________________________
screen-users mailing list
screen-users@...
http://lists.gnu.org/mailman/listinfo/screen-users