tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Scrolling commands
@ 1998-12-23  7:14 Denis Salihagic
  0 siblings, 0 replies; only message in thread
From: Denis Salihagic @ 1998-12-23  7:14 UTC (permalink / raw)
  To: tru64-unix-managers

        Hi,

  many thanks for answers and suggestion to:
        Kurt Carlson
        Steve VanDevender
        Wayne Thompson
        Alan
        Matt Moore
        Larry Griffith
       Lombardi Emanuele
       Jean-Francois Vibert


       My problem was that I cannot use arrow keys ( or some combination
of keys ) to repeat previous command(s) and to move cursor on command
line. In my mail I forgot to write that I am using ksh, but in any case
I received a solution.

     So, first group of answers suggest me to read man page. I, of
course, try that before I have mailed to managers.

    Second group of answers suggest me just to change a shell, and in
most case advice to use tcsh. This is also solution of my problems, but
the question how to do that in ksh is still without answer.

   The shortest and simplest solution, I obtained from Russ Fish:

    in ~/.profile    just add line:                  set -o emacs

    And, with this simple command all start working, not just arrows,
but also jumping on beginning of command line, to end, etc...
     Russ, special thanks to You.

     Jim Williams also sent me a solution, but answer is not so simple
as Russ's. I am just coping his mail down:


>When running the Korn shell, I've got command recall/editing/scrolling
>by creating a .kshrc file and setting the ENV environment variable in
my
>.profile to source it at login.  In the .kshrc file, I define a history

>file, the editor and command line editor values as well as a logout
>alias to clean up the history file on exit:
>
>in .profile add:
>ENV=./.kshrc
>
>in .kshrc:
>HISTFILE=~/.hist$$
>EDITOR=/usr/bin/emacs
>FCEDIT=/usr/bin/emacs
>alias logout='rm ~/.hist$$; exit'
>
>the $$ is the process id of the login shell & of course you'll need
>emacs installed as well.


   That will be all. I obtained solution of my problem very quickly and
with a lot of possibilities.

   Once more, thank You to all who help me.

   Merry Christmas and Happy New Year.

                                Regards,
                                                      Denis Salihagic

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1998-12-23  7:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-12-23  7:14 SUMMARY: Scrolling commands Denis Salihagic

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