[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: screen-users Digest, Vol 1122, Issue 1
From: |
Daniel Patrick Sullivan |
Subject: |
Re: screen-users Digest, Vol 1122, Issue 1 |
Date: |
Sun, 28 Nov 2010 15:10:22 -0600 |
Nice. Works like a charm. You rock. Thanks.
Dan
On Nov 28, 2010, at 2:14 PM, Michael Kelleher wrote:
> Hi Dan,
>
> Solution:
>
> bind j eval "copy" "stuff gw^MG^M"
>
> Use C-a j to activate.
>
> Explination:
>
> What you are trying to accomplish I went through as well a couple years ago.
> You are taking a good approach but not the best. Screen provides a command
> (copy) that will allow you to enter the scrollback mode without stuffing a
> character sequence into the buffer. We can't avoid this in the next part
> thought; however, instead of using 'process' which is for more heavy duty
> manipulations you should be using 'stuff'. Finally instead of using space to
> mark the begin/end of the sequence we are going to use enter because that
> character is easier to capture.
>
> Happy Thankings giving to the community as well.
>
>
>
>
> On Sun, Nov 28, 2010 at 2:51 PM, Daniel Patrick Sullivan
> <address@hidden<mailto:address@hidden>> wrote:
> Ok I have been tinkering around a little bit and I actually want to take this
> a step further. I want to write a screen "macro" that does the following
> things in sequence (I've put the required key for each step at the end of the
> numbered command;
>
> 1) Enter copy mode: ^a[
> 2) Go to the top of the buffer: g
> 3) Go forward to the first word: w
> 4) Begin block selection SPACE
> 5) Go to the end of the buffer G
> 6) End block selection SPACE
>
> I found an example online I am not 100% sure how to deal with the spaces so I
> decided to deal steps 1-3 first. I found this link online that suggests I
> should be able to send multiple characters to screen's input queue by
> leveraging the register and process commands such as;
>
> register j ^a[gw
> bindkey j process j
>
> The page that I found this information at is:
>
> http://superuser.com/questions/94612/macros-in-gnu-screen
>
> I also referenced the GNU documentation and what I have looks like it should
> do the trick. The only thing that I see that might need to be tweaked is the
> -e option, although GNU's documentation doesn't specify what my options are
> in this regard. I guess my problem is that it's not working. When I try to
> use the bindkey and register at the top what I receive is "No other window"
> on screens status bar at the bottom of the screen.
>
> Has anybody successfully bound a key to process a register that interacts
> with screen's buffering capabilities? Could you maybe share the syntax of
> your key binding and register with me?
>
> http://www.gnu.org/software/screen/manual/screen.html#Registers
>
> Thanks,
>
> Dan
>
>
>
> On Nov 28, 2010, at 4:30 AM, Kit Gerrits wrote:
>
>>
>> Next Word, genius!
>>
>> -----Original Message-----
>> From:
>> screen-users-bounces+kitgerrits=gmail.com<http://gmail.com>@gnu.org<http://gnu.org>
>> [mailto:screen-users-bounces+kitgerrits<mailto:screen-users-bounces%2Bkitgerrits>=gmail.com<http://gmail.com>@gnu.org<http://gnu.org>]
>> On Behalf Of
>> address@hidden<mailto:address@hidden>
>> Sent: donderdag 25 november 2010 18:00
>> To: address@hidden<mailto:address@hidden>
>> Subject: screen-users Digest, Vol 1122, Issue 1
>>
>> Send screen-users mailing list submissions to
>> address@hidden<mailto:address@hidden>
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.gnu.org/mailman/listinfo/screen-users
>> or, via email, send a message with subject or body 'help' to
>> address@hidden<mailto:address@hidden>
>>
>> You can reach the person managing the list at
>> address@hidden<mailto:address@hidden>
>>
>> When replying, please edit your Subject line so it is more specific than
>> "Re: Contents of screen-users digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Re: Question Regarding Navigating the Buffer (Michael Kelleher)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Tue, 23 Nov 2010 14:34:30 -0500
>> From: Michael Kelleher <address@hidden<mailto:address@hidden>>
>> Subject: Re: Question Regarding Navigating the Buffer
>> To: Pandurangan R S <address@hidden<mailto:address@hidden>>
>> Cc: address@hidden<mailto:address@hidden>
>> Message-ID:
>> <address@hidden<mailto:address@hidden>>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> Enter scrollback mode then hit "g w"
>> On Nov 23, 2010 11:41 AM, "Pandurangan R S"
>> <address@hidden<mailto:address@hidden>>
>> wrote:
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> http://lists.gnu.org/archive/html/screen-users/attachments/20101123/f56029d0
>> /attachment.html
>>
>> ------------------------------
>>
>> _______________________________________________
>> screen-users mailing list
>> address@hidden<mailto:address@hidden>
>> http://lists.gnu.org/mailman/listinfo/screen-users
>>
>> End of screen-users Digest, Vol 1122, Issue 1
>> *********************************************
>> No virus found in this incoming message.
>> Checked by AVG - www.avg.com<http://www.avg.com>
>> Version: 9.0.872 / Virus Database: 271.1.1/3277 - Release Date: 11/25/10
>> 08:34:00
>>
>>
>> _______________________________________________
>> screen-users mailing list
>> address@hidden<mailto:address@hidden>
>> http://lists.gnu.org/mailman/listinfo/screen-users
>
>
> _______________________________________________
> screen-users mailing list
> address@hidden<mailto:address@hidden>
> http://lists.gnu.org/mailman/listinfo/screen-users
>