🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Andrew Thomas Wed, 14 Jun 1989 16:19
Re: ^ word designator
#103
Author: Andrew Thomas
Date: Wed, 14 Jun 1989 16:19
30 lines
1515 bytes
> >
> >It would be nice if the key binding mechanism was able to cope with
> >the escape sequences generated by arrow keys.
> 
> The patches I posted added this capability.  I talked to Brian about it, and
> they might be in 1.00, though the way I did it isn't really "right" (I should
> have used indirected keymaps to allow binding to multi-character strings,
> but took the easy way out.  Hey, it works for me.).

I have been using bash since 0.87, and have never had a problem with
binding the arrow keys.  My arrow keys produce the following escape
codes (vt220 terminal):
	up arrow	ESC [ A
	down arrow	ESC [ B
	right arrow	ESC [ C
	left arrow	ESC [ D
my .inputrc looks like this:

Meta-[:		prefix-meta
Meta-A:		previous-history
Meta-B:		next-history
Meta-C:		forward-char
Meta-D:		backward-char

I haven't figured out how to bind the vt220 function keys which
generate sequences like 'ESC [ 1 7 ~' and 'ESC [ 1 8 ~'.  It just
occurred to me that this is what this discussion is really about.

Andrew Thomas
andrewt@watsnew.waterloo.edu	Systems Design Eng.	University of Waterloo
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads