function f-radiomenu () { foo= clear fig-col figlet inx Radio printf "\n" head-col echo "Type the number or letter for your choice" printf "\n\n" info-col echo "1: BBC3 - mostly Classical" echo "2: Virgin Rock" echo "3: Otto's Baroque Music" echo "4: Jazz Atlanta " echo "5: Rock - JJJ " echo "6: Classic FM " echo "7: ABC News Service" printf "\n\n" head-col echo "s: Search Shoutcast for more music." printf "\n\n" fig-col echo "h: Help with Radio inx." echo "f: Flip colours." echo "w: Net and Web menu." echo "m: INX main menu." echo "x: Give me a command prompt." printf "\n\n" head-col echo "You can stop playing streams by pressing q " printf "\n" fig-col f-ttynum read -s -n 1 foo case $foo in 1) echo "Please wait - connecting to BBC3" echo bbc3-classical | grep Playing echo f-radiomenu ;; 2) echo "Rock on! Suffer while we buffer" sleep 1 echo "Playing Virgin Classic Rock" echo virgin-classic-rock | grep Playing f-radiomenu ;; 3) echo "Contacting ..." sleep 1 echo "Otto's Baroque Music " echo baroque | grep Playing f-radiomenu ;; 4) echo "Contacting ... " sleep 1 echo "Jazz from Atlanta " echo jazz | grep Playing f-radiomenu ;; 5) echo "Contacting ... " sleep 1 echo "ABC JJJ rocking now! " echo rock-jjj | grep Playing f-radiomenu ;; 6) echo "Contacting ..." sleep 1 echo "ABC Classic FM " echo classicfm-abc | grep Playing f-radiomenu ;; 7) echo "Contacting ..." echo "ABC News Service " echo news-abc | grep Playing f-radiomenu ;; h) clear head-col echo "Basic Controls" fig-col echo " " echo "Volume up: * " echo "Volume down: / " echo "Stop play and return to the menu: q" echo "Toggle pause/play p or space" echo head-col echo "Hit any key to return to the radio menu." white read -n 1 f-radiomenu ;; s) f-plinput ;; w) f-net ;; x) clear f-prompt ;; m) clear f-menu ;; f) export CALL=stream f-switch ;; *) echo echo "I didn't understand that command - please try again." sleep 2 f-radiomenu ;; esac }