Enhancing the user experience with tcsh
jilles at stack.nl
Sun Feb 12 17:52:31 UTC 2012
On Sun, Feb 12, 2012 at 04:05:14AM -0300, Gonzalo Nemmi wrote:
> Joel, with all due respect, do you really think that 99.9% of all
> users will not find the _non_intrusive_ additions below useful?
> bindkey "\e[1~" beginning-of-line #make Home key work;
> bindkey "\e[2~" overwrite-mode #make Ins key work;
> bindkey "\e[3~" delete-char #make Delete key work;
> bindkey "\e[4~" end-of-line #make End key work;
> ... I mean, after all, setting those keys do not change the behaviour
> nor the output of any given command, they are present in 99.9% of the
> keyboards we all get to see everyday and they do not work under the
> current .cshrc config.
> Im not talking about an "improvement", "making things easier for new
> users" or "experience improvement" of any kind ... Im talking about
> including them so all users get to have a fully functional keyboard by
I think this kind of basic stuff should work without any configuration;
it should be fixed in the tcsh code if it does not work already.
It looks like Home and End already work in the common configurations
(xterm and cons25), so bindkey is unnecessary for them.
Delete should be fixed in tcsh like I fixed it in libedit in r212235,
which will make it work in xterm but not cons25. If the 7.x/8.x syscons
is important enough, further tweaking may be appropriate.
The Ins key is more questionable because I think it is not used
deliberately by many people but is annoying if you accidentally press it
and do not realize.
More information about the freebsd-current