Subject: Re: [ast-users] Using libshell for emacs line editing
--------
> We have a small application which needs to prompt for a text line
> (with emacs command line editing) and currently uses libtecla for this
> purpose Can we use libshell for the same task? Is there a code example
> how to do this for libshell?
>
If you are asking how to do this in ksh, You should be able to do
set -o emacs
IFS= read var
and you will be able to use emacs editing on the input line.
You can also continue lines by ending them with a \.
If you are asking how to use editing in an existing program then you can
LD_PRELOAD libedit assuming you have the ast-open package.
David Korn
[email protected]
_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users