Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Doskey

0 views
Skip to first unread message

TS

unread,
Nov 21, 1999, 3:00:00 AM11/21/99
to
Our Company has recently starting using SCO Unix/Open Server. My question is
this. Is there a program that will run on this system that is similar to the
"doskey" program. That is to say when I hit the up arrow, it brings up the
last command entered. Would save a lot of time.
Thanks in advance.


Jean-Pierre Radley

unread,
Nov 21, 1999, 3:00:00 AM11/21/99
to
TS opined (on Sun, Nov 21, 1999 at 04:33:13PM -0500):

Install and use tcsh, which you can get off Skunkware. I use the arrows
to retrievew and edit commands all the time.

I think bash has this ability too.

--
JP

Andrew Smallshaw

unread,
Nov 22, 1999, 3:00:00 AM11/22/99
to

The stock ksh has this ability, with a little work. In your .profile:

ENV=~/.kshrc

In your .kshrc:

set -o emacs
alias __A="^P"
alias __B="^N"
alias __C="^F"
alias __D="^B"
alias __H="^H"
alias __P="^P"

Note that those are real control characters, and not literal ^Fs or whatever.
This is only good for ANSI compatible terminals, but unless you're using
really old terminals that's unlikely to be a problem.

--
Andrew Smallshaw
smal...@cs.man.ac.uk

0 new messages