Is there anyway of retrieving the previous commands in C shell by pressing an arrow key?

Is there anyway of retrieving the previous commands in C shell by pressing an arrow key?

Post by Sheshagir » Wed, 23 May 2001 23:53:40



 Hi all,

 I was just curious to know if there is any way of retrieving the previous
commands one by one by pressing any single key on the key board, in C shell?
i.e., without using the history and !n command.

 Thanks,
 Sheshagiri.

 
 
 

Is there anyway of retrieving the previous commands in C shell by pressing an arrow key?

Post by dh » Thu, 24 May 2001 00:27:19


You can try '<esc> k'
Works in HP 10.2

d


Quote:

>  Hi all,

>  I was just curious to know if there is any way of retrieving the previous
> commands one by one by pressing any single key on the key board, in C
shell?
> i.e., without using the history and !n command.

>  Thanks,
>  Sheshagiri.


 
 
 

Is there anyway of retrieving the previous commands in C shell by pressing an arrow key?

Post by Barry Margoli » Thu, 24 May 2001 01:09:20




> I was just curious to know if there is any way of retrieving the previous
>commands one by one by pressing any single key on the key board, in C shell?
>i.e., without using the history and !n command.

No, csh doesn't have an interactive history mechanism.  Switch to tcsh to
get that.

--

Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

 
 
 

Is there anyway of retrieving the previous commands in C shell by pressing an arrow key?

Post by Kevin Uerkwit » Thu, 24 May 2001 02:49:06


Try adding the following to your ~/.cshrc file:

set history = 100
set savehist = 100
set cmdedit
set editmode=emacs
?
?


> ?Hi all,

> ?I was just curious to know if there is any way of retrieving the previous
> commands one by one by pressing any single key on the key board, in C shell?
> i.e., without using the history and !n command.

> ?Thanks,
> ?Sheshagiri.

 
 
 

Is there anyway of retrieving the previous commands in C shell by pressing an arrow key?

Post by Barry Margoli » Thu, 24 May 2001 03:13:12




Quote:>set cmdedit
>set editmode=emacs

I can't find either of those variables in the csh(1) documentation on
Solaris 2.6, and they're also not in our tcsh 6.05.02 documentation.  What
flavor of Unix has them?

--

Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

 
 
 

1. Retrieving commands using up/down arrow keys in korn shell

I am running the korn shell under SGI IRIX 6.2 and would like to know if
there is a shareware utility to allow the up and down arrow keys to
retrieve commands and edit commands from the history file.  Under the IRIX
6.2 C shell the up and down arrow keys are setup to cycle through the
commands in the history file.  

Sorry if this is a really basic question, but I didn't see it in the FAQs.

2. RedHat 4.0 install

3. Previous commands with arrow keys. Howto?

4. Free X Servers for Windows NT 4.0

5. How to retrieve commands by arrow keys

6. Driver for Marvell

7. ksh: using arrow keys to cycle through previous commands

8. pop3 issues

9. I wanna use the upper arrow key to retrieve the history commands, how?

10. How do I get the Up arrow to repeat previous commands?

11. csh .. retrieve and modiy previous command

12. question-retrieving commands with cursors (up arrow)

13. How to bind the up arrow key to show the last command in csh?