- Add item to the FAQ about configuring the delete key in console/xterm with

sh/csh

PR:		docs/118849
Submitted by:	alepulver
This commit is contained in:
Gabor Kovesdan 2007-12-20 22:15:51 +00:00
parent 2524a1bff7
commit b8be1d00d1
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=31136

View file

@ -2572,6 +2572,32 @@ File: +DESC (ignored)</screen>
</answer>
</qandaentry>
<qandaentry>
<question id="keyboard-delete-key">
<para>How do I use my delete key in <command>sh</command> and
<command>csh</command>?</para>
</question>
<answer>
<para>For the <application>Bourne Shell</application>, add the
following lines to your <filename>.shrc</filename>. See &man.sh.1;
and &man.editrc.5;.</para>
<programlisting>bind ^? ed-delete-next-char # for console
bind ^[[3~ ed-delete-next-char # for xterm</programlisting>
<para>For the <application>C Shell</application>, add the following
lines to your <filename>.cshrc</filename>. See &man.csh.1;.</para>
<programlisting>bindkey ^? delete-char # for console
bindkey ^[[3~ delete-char # for xterm</programlisting>
<para>For more information, see <ulink
url="http://www.ibb.net/~anne/keyboard.html">this page</ulink>.
</para>
</answer>
</qandaentry>
</qandaset>
</sect1>