function f-plinput () { setterm -foreground yellow -bold on && clear figlet "Random " " Radio !" KEYS= setterm -foreground white -bold off echo "For information about the "Plait" player this uses," echo "read the documents in $HOME/plait. "Plait" is written by Stephen Jungels " echo " " echo " " setterm -foreground yellow -bold on echo "Type the kind of music you would like to hear." echo " " echo "For example:" printf "\n\n" echo " '"jazz"' or '"hard rock "' or '"flamenco"'" printf "\n\n" setterm -foreground white echo "PLAYER CONTROLS" echo " " echo "l: Whatever happens to be already in the list " echo " " echo "q: Stop the music playing and have another try." echo " " echo "m: Stop the music and return to the main inx menu. " printf "\n\n" setterm -foreground yellow #echo "In each case hit enter to activate" printf "\n\n\n" setterm -foreground white read "KEYS" case "$KEYS" in q) plait --stop killall mplayer f-plinput ;; m) plait --stop killall mplayer 2> /dev/null printf "\n\n" setterm -foreground cyan echo "OK, back to the main menu ..." sleep 1 setterm -foreground white -bold off printf "\n\n" f-menu ;; l) plait f-plinput ;; *) f-send ;; esac }