🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #43

Re: Can you unbind keys in bash ???

#43
From: Chet Ramey
Date: Mon, 02 Nov 1992 13:44
24 lines
1162 bytes
>I am trying to get bash to unbind the key ^P, so that it can be used for its
>normal function here (as a local escape to bring up this thing called the
>pad prompt) but I can't seem to do it. Is this possible in bash or am I
>trying to do the impossible ?

A key sequence is `unbound' in readline by binding it to `self-insert',
which causes the character(s) to be inserted into the input line without
interpretation.

Try
	bind 'C-p:self-insert'

at a bash prompt or put

	"\C-p": self-insert

into your ~/.inputrc.

Chet
-- 
``The use of history as therapy means the corruption of history as history.''
	-- Arthur Schlesinger

Chet Ramey, Case Western Reserve University	Internet: chet@po.CWRU.Edu
Technical Details
Message-ID: <1d3bbjINNchh@usenet.INS.CWRU.Edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!usenet.ins.cwru.edu!odin!chet
References: <6408@falcon.ukc.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!cs.utexas.edu!sun-barr!ames!agate!usenet.ins.cwru.edu!odin!chet
From: chet@odin.ins.cwru.edu (Chet Ramey)
Newsgroups: comp.unix.shell
Subject: Re: Can you unbind keys in bash ???
Date: 2 Nov 1992 13:44:19 GMT
Organization: Case Western Reserve University, Cleveland, OH (USA)
Lines: 24
Message-ID: <1d3bbjINNchh@usenet.INS.CWRU.Edu>
References: <6408@falcon.ukc.ac.uk>
NNTP-Posting-Host: odin.ins.cwru.edu