[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 13:51:02 -0600 |
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: address@hidden
> [mailto:address@hidden On Behalf Of
> address@hidden
> Sent: donderdag 25 november 2010 18:00
> To: address@hidden
> Subject: screen-users Digest, Vol 1122, Issue 1
>
> Send screen-users mailing list submissions to
> 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
>
> You can reach the person managing the list at
> 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>
> Subject: Re: Question Regarding Navigating the Buffer
> To: Pandurangan R S <address@hidden>
> Cc: address@hidden
> Message-ID:
> <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>
> 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
> 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
> Version: 9.0.872 / Virus Database: 271.1.1/3277 - Release Date: 11/25/10
> 08:34:00
>
>
> _______________________________________________
> screen-users mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/screen-users