Date: Fri, 14 Jan 2005 09:03:34 +0100 From: Matthias Buelow <mkb@incubus.de> To: dkouroun@cc.uoi.gr Cc: freebsd-questions@freebsd.org Subject: Re: del key in bash or tcsh Message-ID: <41E77CD6.9070703@incubus.de> In-Reply-To: <1105682151.41e75ee75d681@webmail.uoi.gr> References: <20050114041625.5FAAB16A4D1@hub.freebsd.org> <1105682151.41e75ee75d681@webmail.uoi.gr>
next in thread | previous in thread | raw e-mail | index | archive | help
dkouroun@cc.uoi.gr wrote: > Does anybody know how to change this > annoying default behaviour of bash or sh > in FreeBSD when somebody presses the del key? > When I press the del key I want this to work > as it works on any editor or in Linux bash! > Anyway to achieve this? as we cannot guess what the behaviour that you desire actually is, I'm contributing a few tips: - configure xterm (or the terminal emulator you're using) to emit the appropriate key sequence when the "delete" key is hit. In xterm, this can be done via X resources, see xterm(1). For example, make it send ^?. - set the terminal line discipline's erase key to that key (see stty(1)), or use bash's readline keybindings functionality to bind that key to the function you like. I'm not that familiar with readline or bash but it's doable and described in either the bash manpage, or readline's documentation (info files). > For sh which command controls the color? none. mkb.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41E77CD6.9070703>