README - iomenu - interactive terminal-based selection menu
(HTM) git clone git://bitreich.org/iomenu git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/iomenu
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
(DIR) LICENSE
---
README (766B)
---
1 iomenu
2 ======
3
4 *iomenu* is an interactive menu inspired from dmenu [1]: it reads lines from
5 stdin display them to the screen [1], and filter them as the user type. When
6 `Enter` is pressed, the selected line is printed to stdout.
7
8 This permits to build interactive menu with shell pipes. As an example, a poor
9 man's music player could be done this way:
10
11 $ find ~/music -name '*.flac' | iomenu | xargs mplayer
12
13 It will print all the FLAC files in `~/music` to iomenu which shows a fulscreen
14 menu, and the selected file will be printed to xargs mplayer.
15
16 iomenu does not use ncurses but ansi escape sequences [2] instead so it does
17 not have dependencies beyond a C compiler.
18
19 [1]: https://tools.suckless.org/dmenu
20 [2]: https://en.wikipedia.org/wiki/ANSI_escape_code