csh editing command line

From: Lucio Chiappetti <lucio_at_ifctr.mi.cnr.it>
Date: Tue, 10 Sep 1996 10:54:13 +0200 (MET DST)

I *desperately* want to reinstate in Digital Unix csh the command line
editing mode I had in Ultrix csh. In particular I want to be able to use
the arrow keys to move to the previous and next command, and also to the
previous and next character on the line. For the rest I'd use the vi
editing commands.

I've read the man pages of csh and cmdedit, and tried the following

    set editmode=vi

    created a .bindings file with the following content, which should
    remap the arrow keys. I've tried also putting \^[ instead of \e
    for "escape"

bind-to-key PreviousHistEntry "\e[A"
bind-to-key NextHistEntry "\e[B"
bind-to-key ForwardChar "\e[C"
bind-to-key BackSpace "\e[D"

The set editmode command works, and I've tried also some other
bind-to-key (apparently I can remap to any control sequence but not to
the arrow keys). I get a funny behaviour, that is even if I want to use
the painful vi cursor-movement (hjkl) I have to "unset edithist" and
press escape once I recalled a command.

Any enlightment or pointer to FAQ appreciated.

----------------------------------------------------------------------------
       A member of G.ASS : Group for Astronomical Software Support
----------------------------------------------------------------------------
Lucio Chiappetti - IFCTR/CNR | Ma te' vugl' da' quost avis a ti' Orsign
via Bassini 15 - I-20133 Milano | Buttet rabios intant te se' pisnign
Internet: LUCIO_at_IFCTR.MI.CNR.IT | (Rabisch, II 46, 119-120)
----------------------------------------------------------------------------
For more info : http://www.ifctr.mi.cnr.it/~lucio/personal.html
----------------------------------------------------------------------------
Received on Tue Sep 10 1996 - 11:23:20 NZST

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:47 NZDT