Skip to content
make choices on the command line
Branch: master
Clone or download
geier Write end result to stderr
We currently close stdout's fd, which leads to everything that gets
choose's output piped will not actually get it. Will need to
investigate. Wondering if this ever worked properly...
Latest commit 4e7565d May 10, 2016
Type Name Latest commit message Commit time
Failed to load latest commit information.
COPYING added License (MIT/Expat) Apr 22, 2014 updated README Nov 20, 2015
choose Write end result to stderr May 10, 2016
choose.png added README Mar 24, 2013

choose - make choices on the command line

reads lines from stdin, lets user choose one line in an urwid (ncurses like) interface, then prints that line to stdout and exits. Input will be aligned to tabs(\t). After reading from stdin, in attaches itself directly to the currently active tty, thus it can work with piped input: | choose |

Choose should run on all *NIXes, but might not work in non utf-8 locales.

An example of piping the output of pc_query -t searchstring into choose:

You can’t perform that action at this time.