Re: screen-users Digest, Vol 1122, Issue 1

Daniel Patrick Sullivan <dansully-t4+EzPmVLfD2fBVCVOL8/[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
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-mXXj517/[email protected]
> [mailto:screen-users-bounces+kitgerrits=gmail.com-mXXj517/[email protected]] On Behalf Of
> screen-users-request-mXXj517/[email protected]
> Sent: donderdag 25 november 2010 18:00
> To: screen-users-mXXj517/[email protected]
> Subject: screen-users Digest, Vol 1122, Issue 1
> 
> Send screen-users mailing list submissions to
> 	screen-users-mXXj517/[email protected]
> 
> 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
> 	screen-users-request-mXXj517/[email protected]
> 
> You can reach the person managing the list at
> 	screen-users-owner-mXXj517/[email protected]
> 
> 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 <[email protected]>
> Subject: Re: Question Regarding Navigating the Buffer
> To: Pandurangan R S <[email protected]>
> Cc: screen-users-mXXj517/[email protected]
> Message-ID:
> 	<AANLkTiktNoTjtS0di1TFb2e6CaZEJZEwKz4xpTk3veAP-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
> 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" <[email protected]>
> 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
> screen-users-mXXj517/[email protected]
> 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
> screen-users-mXXj517/[email protected]
> http://lists.gnu.org/mailman/listinfo/screen-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.