delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1997/05/10/13:19:16

From: chuck AT hysteria DOT spb DOT ru (Chuck Bogorad)
Subject: bind in bash
10 May 1997 13:19:16 -0700 :
Approved: cygnus DOT gnu-win32 AT cygnus DOT com
Distribution: cygnus
Message-ID: <3374B81D.cygnus.gnu-win32@hysteria.spb.ru>
Mime-Version: 1.0
Original-To: gnu-win32 AT cygnus DOT com
Original-Sender: owner-gnu-win32 AT cygnus DOT com

Aris DOT Zakinthinos AT cl DOT cam DOT ac DOT uk wrote:

 Ac> I have been trying to add a binding so that "Home", "End" etc. do
 Ac> the obvious things for command line editing.  I have tried
 Ac> everything I can possibly thing of but I can't get it to work.  Is
 Ac> bind broken? 

here's how it's done:

# home key
bind '"\e[1~":beginning-of-line'
# del key
bind '"\e[3~":delete-char'
# end key
bind '"\e[4~":end-of-line'
# pgup key
bind '"\e[5~":history-search-forward'
# pgdn key
bind '"\e[6~":history-search-backward'


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019