How one could address a window with a highest number inside a particular screen session?

Anatoly Varakin <[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <191FE8A27AF1B044A3FA3E267B715D566178@EX10N2.tf-net.tribalfusion.com>
Dear colleagues,

Please help to resolve the problem of finding a reliable way to address programmatically (via bash script) a window with a highest number inside a particular screen session, without an explicit specification of neither window number nor title, and no matter which window has been opened manually last time. It is necessary for the consecutive closing windows in the strict backward order opposite to the windows creation order.

Any ideas would be greatly appreciated.

Thanks in advance!

Kind regards,
Anatoly Varakin

_______________________________________________
screen-users mailing list
screen-users-mXXj517/[email protected]
https://lists.gnu.org/mailman/listinfo/screen-users
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.