svn commit: r233429 - in head: etc/root share/examples share/examples/csh

Jan Beich jbeich at tormail.net
Sat Mar 24 20:03:29 UTC 2012


Eitan Adler <eadler at FreeBSD.org> writes:

> Author: eadler
> Date: Sat Mar 24 18:43:18 2012
> New Revision: 233429
> URL: http://svn.freebsd.org/changeset/base/233429
>
> Log:
>   - Make the default values for tcsh more user friendly
[...]
> Modified: head/etc/root/dot.cshrc
> ==============================================================================
> --- head/etc/root/dot.cshrc	Sat Mar 24 18:25:16 2012	(r233428)
> +++ head/etc/root/dot.cshrc	Sat Mar 24 18:43:18 2012	(r233429)
[...]
> +		bindkey "\e[1~" beginning-of-line #make Home key work;
> +		bindkey "\e[4~" end-of-line #make End key work;

Home/End keys are already bound unless termcap is somehow broken.

  $ tcsh -f
  > bindkey
  ...
  Arrow key bindings
  down           -> down-history
  up             -> up-history
  left           -> backward-char
  right          -> forward-char
  home           -> beginning-of-line
  end            -> end-of-line
 
Also, if you launch xterm with `-kt tcap' it would produce
whatever kh/@7 sequences are, e.g. different under tmux/screen.

> +		bindkey "\e[3~" delete-char #make Delete key work;

inb4 someone expands static list of arrow keys in tcsh

  set key_dc=`echotc kD`
  bindkey $key_dc delete-char


More information about the svn-src-all mailing list