tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Lucio Chiappetti <lucio () ifctr ! mi ! cnr ! it>
To: tru64-unix-managers
Subject: csh editing command line
Date: Tue, 10 Sep 1996 08:54:13 +0000	[thread overview]
Message-ID: <96076339121376.tru64-unix-managers.marc@archive.invalid> (raw)

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@IFCTR.MI.CNR.IT  |             (Rabisch, II 46, 119-120)    
----------------------------------------------------------------------------
For more info : http://www.ifctr.mi.cnr.it/~lucio/personal.html             
----------------------------------------------------------------------------

                 reply	other threads:[~1996-09-10  8:54 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox