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