Command line editing (ied / readline)

Command line editing (ied / readline)

Post by Logan Sh » Thu, 24 Feb 2000 04:00:00





>I've been working in an HP environment for a few years and stumbled
>across a great utility called ied.

>Basically, it lets you cycle through previous commands and edit
>them, if necessary (using vi-like commands) of any command-driven
>program (such as ftp) by specifying

>    $ ied executable

>I've recently moved to a Solaris environment and have found no
>such equivalent.  My understanding (which could be wrong) is that
>ied is HP proprietary and hence I cannot compile it on Solaris.

Solaris comes with the Korn shell (/bin/ksh) which supports this.

All you need to do is make sure you're using the Korn shell and then
type "set -o vi" to turn on vi-like editing or "set -o emacs" to turn
on emacs-like editing.

Korn shell also supports the "fc" command, which lets you actually run
a real editor on the previous command (among other things).  This is
great if you build a big while loop or pipeline and mess it up slightly
because you can edit it in a real editor.

For more info, do:

        man fc
        man ksh

Contact your system administrator to have your shell changed.  If you
are the system administrator, you might be able to use
"usermod -s /bin/ksh username".

  - Logan, who wonders what was so bad about "chsh" and why it's gone.

 
 
 

Command line editing (ied / readline)

Post by [Encrypted » Fri, 25 Feb 2000 04:00:00


Greetings,

I've been working in an HP environment for a few years and stumbled
across a great utility called ied.

Basically, it lets you cycle through previous commands and edit
them, if necessary (using vi-like commands) of any command-driven
program (such as ftp) by specifying

        $ ied executable

I've recently moved to a Solaris environment and have found no
such equivalent.  My understanding (which could be wrong) is that
ied is HP proprietary and hence I cannot compile it on Solaris.

I know that there is the GNU readline library that lets you compile
this functionality into your own software, but does anyone know of
any software that provides this sort of functionality.

Thanks.

 
 
 

Command line editing (ied / readline)

Post by [Encrypted » Fri, 25 Feb 2000 04:00:00





> >Basically, it lets you cycle through previous commands and edit
> >them, if necessary (using vi-like commands) of any command-driven
> >program (such as ftp) [...]
> Solaris comes with the Korn shell (/bin/ksh) which supports this.

I'm happy with the command-line editing in the shell I'm using.  What
I want is vi style command-line editing & history in command-line
programs (besides the shell), such as ftp, sqlplus (Oracle utility),
telnet to name just a few. This is what ied gives you on HP.
 
 
 

1. A new command-line editing library like readline

This announces the alpha release of a new interactive command-line
editing library called tecla. This library fills a similar role to the
GNU readline library, but is smaller, designed with optional
reentrancy in mind, and comes under a less restrictive free
license. Like readline, it provides interactive command-line editing,
file-completion, command-line history recall and editing, and a
customizable word completion mechanism. The default key bindings are
designed to mimic most of the key-bindings of tcsh.

For further information, please see the following URL:

  http://www.astro.caltech.edu/~mcs/tecla/index.html

The library has been tested under Solaris and Linux, so if you compile
it on a different system, please tell me how this goes.


2. gs: ljet4 (defaults to 600 dpi) but I have 300 dpi ?

3. readline configuration for bash command line editing

4. Why 6bpp not 8bpp???

5. can't get cdecl to use readline (up arrow or cmd line editing)

6. Ftape problem...

7. trouble editing bash command line in xterm

8. Uninterruptible Power Supply Shut-Down?

9. Problem with command line editing

10. command line editing using the vi keys

11. C shell command line edit ????????

12. command line editing

13. zsh command line editing