Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.

ask user for input interactively

0 votes
asked Jul 22 in vifm by jose
edited Jul 23

hi, i was hoping for being able to do something like
`:execute 'echo' '"'.term('dialog --inputbox foobar 20 20')."'"`
but this was really naive. can you please advise the recommended way of asking user for an input from an already executed command? thank you, j

1 Answer

0 votes
answered Jul 23 by xaizek
edited Jul 23 by xaizek
 
Best answer

I don't think there is any recommended way. There was something in TODO, but it's not implemented.

Your command just lacks stream redirections to make dialog draw on terminal, but print answer to vifm's pipe:

:execute 'echo' '"'.term('dialog --inputbox foobar 20 20 2>&1 > /dev/tty').'"'
If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.
...