Re: programatically determine which window am I in? -> realtime caption color change

Eric Smith <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
I asked this, planning to implement a change in caption color
based on the screen number. 

This works great in a shell script continuously looping, however
this is not elegant, accordingly is there a way to watch the
$WINDOW variable more efficiently from within screen and on a
change, to refresh the screen caption accordingly?

Eric

Clark Wang wrote on Fri-26-Jun 15  5:49AM
>    On Sat, Jun 20, 2015 at 11:47 AM, Eric Smith <[1]es-uQVgsefbNdNWk0Htik3J/[email protected]> wrote:
> 
>      I want to write a screen macro with logic that depends on which
>      window (name) is active. How would I do that?
> 
>    Screen would set the $WINDOW variable. Not sure if it's what you want.
> 
>    -clark
> 
>      Thanks
> 
>      Eric
> 
>      _______________________________________________
>      screen-users mailing list
>      [2]screen-users-mXXj517/[email protected]
>      [3]https://lists.gnu.org/mailman/listinfo/screen-users
> 
> References
> 
>    Visible links
>    1. mailto:es-uQVgsefbNdNWk0Htik3J/[email protected]
>    2. mailto:screen-users-mXXj517/[email protected]
>    3. https://lists.gnu.org/mailman/listinfo/screen-users

-- 
Best regards,
Eric Smith
BioVolt B.V.
Mobile: 00 31 6 455 09313 - Tel Wageningen: +31 317 728888
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.