Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: coproc tutorial (Re: questions)
- X-seq: zsh-users 2667
- From: Thomas Köhler <jean-luc@xxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxxxxxx
- Subject: Re: coproc tutorial (Re: questions)
- Date: Mon, 11 Oct 1999 14:55:14 +0200
- In-reply-to: <199910111045.MAA03145@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199910111045.MAA03145@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Mon, Oct 11, 1999 at 12:45:16PM +0200,
Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
> Chris Hansen wrote:
>
> > #!/bin/zsh -i
> >
> > coproc /usr/bin/nslookup
> >
> > while true; do
> > TEST=">"
> > NSLOUT=" "
> > while [[ $TEST != $NSLOUT ]] ; do
> > print -n $NSLOUT
> > read -pk NSLOUT
> > done
> > read 'QUERY?>'
> > print -p $QUERY
> > done
>
> 3.1.6-pws-something (at least the latest pws-6) has Functions/Misc/nslookup
> which uses `vared' to read the user input, thus allowing command line
> editing. Together with the new completion system this function will
> also give you completion *inside* nslookup (and not only nslookup's
> arguments).
Now this is really cool... how do I enable this? :-)
> To workers: seems like noone found this interesting enough to improve
> the code I hacked up. Maybe sometime we could write a generic function
> for this task...
Allowing completion from within all stdin/stdout-bound programs?
ncftp -L is a candidate here, amongst others...
> Bye
> Sven
CU,
Thomas
--
Thomas Köhler Email: jean-luc@xxxxxxxxxxxxxxxxx | LCARS - Linux for
<>< WWW: http://home.pages.de/~jeanluc/ | Computers on All
IRC: jeanluc | Real Starships
PGP public key: http://www.mayn.de/users/jean-luc/PGP-Public.asc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author