Re: Is there a screen command to identify the current visible window number?

2018-09-12 Thread 张小潘
Hi Michael, Ah, "msgwait 0" does the trick! Thank you very much. screen is really a piece of amazing software, it has so many features. Regards. On Wed, Sep 12, 2018 at 11:32 AM Michael Parson wrote: > On 2018-09-12 13:14, 张小潘 wrote: > > Hi Neal and FLJ, > > > > I noticed that the command "s

Re: Is there a screen command to identify the current visible window number?

2018-09-12 Thread Michael Parson
On 2018-09-12 13:14, 张小潘 wrote: Hi Neal and FLJ, I noticed that the command "screen -S -Q number" will not only print the current focused window number on the terminal running this command, but also pops up a message on the target screen session, and that popup message will block the target scr

Re: Is there a screen command to identify the current visible window number?

2018-09-12 Thread 张小潘
Hi Neal and FLJ, I noticed that the command "screen -S -Q number" will not only print the current focused window number on the terminal running this command, but also pops up a message on the target screen session, and that popup message will block the target screen session to take any input for

Re: Could I contribute a patch to increase the default remote command buffer size?

2018-09-12 Thread 张小潘
Yes, /usr/bin/screen -S -p -X eval "readbuf" "paste ." does the trick. Thank you very much! On Wed, Sep 12, 2018 at 9:24 AM Neal Fultz wrote: > I use eval to send the readbuf and paste commands at the same time, and > the message doesnt appear for me. > > I think eval can skip those types of

Re: Could I contribute a patch to increase the default remote command buffer size?

2018-09-12 Thread Neal Fultz
I use eval to send the readbuf and paste commands at the same time, and the message doesnt appear for me. I think eval can skip those types of messages when there are multiple commands. On Wed, Sep 12, 2018 at 8:51 AM 张小潘 wrote: > Hi Neal, > > I tried to change my vim script by using the "readb

Re: Could I contribute a patch to increase the default remote command buffer size?

2018-09-12 Thread 张小潘
Hi Neal, I tried to change my vim script by using the "readbuf" and "paste" commands, and I immediately noticed that the message "Slurped XXX characters into buffer" issued by the "readbuf" is very annoying, and it actually pause the remote screen a little bit, I tried '-q' but it does not help. H

Re: Is there a screen command to identify the current visible window number?

2018-09-12 Thread 张小潘
Great, "screen -S session -Q number" is exactly what I want. Thanks to FLJ for the tip and yes, Neal's clarification about "focus" vs "visible" is correct, the thing I actually is the number of the window who has the focus now. On Wed, Sep 12, 2018 at 7:48 AM Neal Fultz wrote: > Also IIRC the n

Re: Is there a screen command to identify the current visible window number?

2018-09-12 Thread Neal Fultz
Also IIRC the number command gives the number of the process which has focus - if you use splits more than one may be visible, but only one has focus at a time. On Wed, Sep 12, 2018 at 5:52 AM FLJ wrote: > Hello Xiaopan, > > perhaps I misunderstood, but at least on recent version of Ubuntu, > R

Re: Is there a screen command to identify the current visible window number?

2018-09-12 Thread FLJ
Hello Xiaopan, perhaps I misunderstood, but at least on recent version of Ubuntu, Raspbian and OpenWrt you have: * -Q* Some commands now can be queried from a remote session using this flag, e.g. "screen -Q windows". The commands will send the response to the