PHWinfo banniere

ACCUEIL ANNUAIRE ARTICLES COMPARATIF HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Go Back   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > comp.unix.shell > CSH -- mapping up & down arrow keys to walk through last cmd history
FAQ Members List Search Today's Posts Mark Forums Read
comp.unix.shell Using and programming the Unix shell.

CSH -- mapping up & down arrow keys to walk through last cmd history

Reply
 
Thread Tools
Old 12/07/06, 00:36   #1
jonas.cord@gmail.com
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default CSH -- mapping up & down arrow keys to walk through last cmd history

Hi Group,

In C shell, Is there any way I can map Up & Down arrow keys to walk
through the entire last command history list ?

Something similar what Bash shell does by default.

Thanks in advance for any .

J

  Reply With Quote
Old 12/07/06, 00:54   #2
Keith Thompson
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Re: CSH -- mapping up & down arrow keys to walk through last cmdhistory

jonas.cord@gmail.com writes:
> In C shell, Is there any way I can map Up & Down arrow keys to walk
> through the entire last command history list ?
>
> Something similar what Bash shell does by default.


In plain csh, no.

Use tcsh instead.

--
Keith Thompson (The_Other_Keith) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <*> <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
  Reply With Quote
Old 12/07/06, 01:08   #3
Bill Marcum
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Re: CSH -- mapping up & down arrow keys to walk through last cmd history

On 6 Dec 2006 16:36:56 -0800, jonas.cord@gmail.com
<jonas.cord@gmail.com> wrote:
> Hi Group,
>
> In C shell, Is there any way I can map Up & Down arrow keys to walk
> through the entire last command history list ?
>
> Something similar what Bash shell does by default.
>
> Thanks in advance for any .
>

Not in csh, but in tcsh. Fortunately on many systems csh is an alias
for tcsh.


--
If you wish women to love you, be original; I know a man who wore fur
boots summer and winter, and women fell in love with him.
-- Anton Chekhov
  Reply With Quote
Old 12/07/06, 01:51   #4
jonas.cord@gmail.com
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Re: CSH -- mapping up & down arrow keys to walk through last cmd history


>
> In plain csh, no.
>
> Use tcsh instead.
>


thanks guys !!!
ya tcsh gave me back my arrow key shortcuts.

I haven't played much with "tcsh" before. All the valid "csh" statments
& syntax should be valid with tcsh as well right ?

and does tcsh allow mapping of customized keystrokes with commands ?

thanx again in advance.

  Reply With Quote
Old 12/07/06, 04:47   #5
Barry Margolin
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Re: CSH -- mapping up & down arrow keys to walk through last cmd history

In article <1165456280.112915.299790@80g2000cwy.googlegroups. com>,
jonas.cord@gmail.com wrote:

> >
> > In plain csh, no.
> >
> > Use tcsh instead.
> >

>
> thanks guys !!!
> ya tcsh gave me back my arrow key shortcuts.
>
> I haven't played much with "tcsh" before. All the valid "csh" statments
> & syntax should be valid with tcsh as well right ?


yes

> and does tcsh allow mapping of customized keystrokes with commands ?


Yes, see the bindkey built-in command

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
  Reply With Quote
Old 12/07/06, 18:49   #6
jonas.cord@gmail.com
Aucun Avatar
 
Posts: n/a
Hébergeur:
Default Re: CSH -- mapping up & down arrow keys to walk through last cmd history


> > > In plain csh, no.
> > >
> > > Use tcsh instead.
> > >

> >
> > thanks guys !!!
> > ya tcsh gave me back my arrow key shortcuts.
> >
> > I haven't played much with "tcsh" before. All the valid "csh" statments
> > & syntax should be valid with tcsh as well right ?

>
> yes
>
> > and does tcsh allow mapping of customized keystrokes with commands ?

>
> Yes, see the bindkey built-in command



Great !!! exactly what I was looking for. Thanks Barry.

  Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


All times are GMT +1. The time now is 09:25.


Powered by vBulletin® ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
PHWinfo is a website Education Without Frontiers
Ad Management by RedTyger
All rights reserved
Page generated in 0.22257 seconds with 7 queries