🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by James J Dempsey Tue, 22 Aug 1989 17:22
keypad support?
#486
Author: James J Dempsey
Date: Tue, 22 Aug 1989 17:22
35 lines
1481 bytes
I personally don't use arrow keys, but there are people I support who
love to use keypad keys and arrow keys.  Unfortunately, I can't figure
out how to get bash to accept bindings for arbitrary keyboard
sequences.

For example, one user has terminal which generates <Esc>[A when the
up-arrow key is pressed.  The user would like this key to execute the
previous-history command.  The only thing I could think of to try to
get this to work was to put:

M-[-A: previous-history

or 

M-[A: previous-history

in .inputrc, neither of which has the desired effect.  Can you bind
arbitrary keyboard sequences to bash functions?  Is there a way of
defining a "M-[" keymap?  

In addition, perhaps bash should check TERMCAP for the presence of
arrow keys and automatically define them to do the canonical things if
they exist.

I also will reiterate my request for a builtin to list all keyboard
bindings.

Thanks,

		--Jim Dempsey--
		BBN Communications
		jjd@bbn.com (ARPA Internet)
                ..!{decvax, harvard, wjh12, linus}!bbn!jjd

P.S.  When will 1.03 be released?
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