Is there a screen command to identify the current visible window number?
张小潘 <[email protected]> Tue, 11 Sep 2018 20:33:25 -0700
| Newsgroups | gmane.comp.gnu.screen.user |
|---|---|
| Message-ID | <CAPgpG2D9eXZmt7zDaSYF0eMFiNen0f36U0o=wQhipzNBRgePmg@mail.gmail.com> |
Hi there, In short: If a screen session has multiple windows, does any one know how to tell the number of the current visible window? In long: As I explained in this thread <http://lists.gnu.org/archive/html/screen-users/2018-09/msg00000.html>, I have two monitors running two screen sessions, and a vim window in one and bash in the other, and I am using screen '-X stuff' command to send shell commands from the vim window to the bash window to execute them. Because the screen session in which the bash lives might have multiple windows, I want to make sure the bash window receiving commands is visible and if it is not, explicitly switch to that by selecting them. However, if a window is already selected, selecting it again causing an annoying message box and a pause in the screen display, so I want to avoid selecting already selected window. I know the window number where the bash runs, but how can I get the current visible window number? Regards. -- Xiaopan Zhang - (张小潘) _______________________________________________ screen-users mailing list screen-users-mXXj517/[email protected] https://lists.gnu.org/mailman/listinfo/screen-users