I would recommend switching to the new window using it's title rather then it's number.
Here is an example of binding C-a M to switch to mutt, then sending a y to make it open the mailbox list: bind m eval "select mutt" "stuff y" On Fri, Nov 25, 2016 at 11:36 AM, ed <ed-scr...@s5h.net> wrote: > On Fri, Nov 25, 2016 at 10:52:55AM -0500, Dan D. wrote: > > For example if switching into a window holding a running program, > > can a command be sent to that running program as the swittch is > > underway? > > Why not switch to the window then bind a key with 'stuff' to send > whatever you need? > > -- > Best regards, > Ed http://www.s5h.net/ > > > _______________________________________________ > screen-users mailing list > screen-users@gnu.org > https://lists.gnu.org/mailman/listinfo/screen-users >
_______________________________________________ screen-users mailing list screen-users@gnu.org https://lists.gnu.org/mailman/listinfo/screen-users