Perhaps something like...

 (in '(fzf "-f" "lib") (until (eof) (println (line T))))

/Lindsay

On Wed, Oct 24, 2018 at 11:07 AM Curtis <[email protected]> wrote:

> Thanks for the quick reply. I'll see if I can get 'fzf' to dump it's output
> to a temp file. Thank you.
>
> On Wed, Oct 24, 2018 at 12:46 PM Alexander Burger <[email protected]>
> wrote:
>
> > Hi Curtis,
> >
> > > I'm trying to run a program (fzf - a really useful ncurses text fuzzy
> > > finder) and read its output using (in), but I'm not getting it to
> > > work.
> >
> > Hmm, hard to tell from here, but if it uses ncurses it probably switches
> > the
> > terminal to some raw mode, and things get messed up.
> >
> > > : (in '(fzf) (line T))
> > > Failed to read /dev/tty
> >
> > Probably stdout goes directly to /dev/tty instead of the file descriptor
> > of that
> > pipe, or something like that.
> >
> >
> > > I even tried to put the above command in an executable file with the
> > > following contents:
> > >
> > > #!/bin/bash
> > > # saved in test.sh
> > > cat locations.csv | fzf --multi
> > >
> > > then call it like:
> > > (in '("./test.sh") (line T))
> > >
> > > but it just freezes the terminal and I have to forcible kill the script

Reply via email to