Added a way to return a header in addition to the match.
[iomenu.git] / io-tty-font
blobad077e038d35b0762a8ad5dff67ddee724e90edd
1 setfont "$(
2         find /usr/share ~ -type d -name consolefonts | while IFS='' read -r path
3         do
4                 if [ -d "$path" ]
5                 then
6                         cd "$path"
8                         fonts="$(find . -type f | cut -c 3-)"
10                         [ "$fonts" ] && printf '#\n# %s\n%s\n' "$path" "$fonts"
11                 fi
13         done | iomenu -l 256 -s '#'