
# You get this after a stream starts from f-plinput via f-send - or after you exit elinks
# from its displaying ~/.plait/shoutcast.html

function f-plait-return ()

{
clear
fig-col
figlet "Random "    " Radio !"
KEYS=
white ; unbold 
echo "For information about the "Plait" player this uses,"
echo "read the documents in $HOME/plait. "Plait" is written by Stephen Jungels "
echo 
echo 
bold
head-col
echo "Random Radio searches for Shoutcast streams, and plays them."
echo
info-col
echo "q: Stop the player and make a new Shoutcast search"
echo
echo "m: Stop the player and return to the main inx menu"
echo
echo "r: Stop the player and return to the inx radio menu"
echo
echo "x: Give me a command prompt."
echo
f-ttynum
read -s -n 1 DOIT

case "$DOIT" in

	q)
	plait --stop
	killall mplayer 2> /dev/null
	f-plinput 
	;;

	m)
	plait --stop
	killall mplayer 2> /dev/null
	f-menu 
	;;

	r)
	plait --stop
	killall mplayer 2> /dev/null
	f-radiomenu
	;;
	
	x)
	clear
	f-prompt
	;;

	*)
	echo
	echo "I didn't understand that command - please try again."
	f-plait-return
	;;
esac

}
