Re: using <left-arrow> in bind (Eric Smith)

luteijn <luteijn-qWit8jRvyhVmR6Xm/[email protected]>
Newsgroups gmane.comp.gnu.screen.user
Message-ID <[email protected]>
> Adding the following to the binding above, performs a delete backwards
> 'stuff ^H'
> Which escape or control sequence do I use for a <left=arrow>?
> When I use C-V to find out it reports .
> However that does not work for me.

What you should be sending in your case is <ESC>[D (three bytes, <ESC> 
is the same character as ctrl-[, rendered as ^[. Control sequences can 
be entered in 'stuff' in the caret notation, so 'stuff ^[[D' should 
work. Note that you do need two open-square-brackets next to each other. 
Right arrow would be ^[[C, up and down use A and B, another useful key 
is home: 'stuff ^[[1~', maybe followed by a few right arrows, if you 
have a long command of variable length that you have a variable addition 
to near the start.

Regards,
Pieter
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.