3 exec 3<> /dev/tcp/vapier/8001
4 send() { echo "$*" 1>&3 ; }
5 recv() { local l; read l <&3; echo ${l%$'\r'} | sed 's:\r$::' ; }
12 while read -p "vlc$ " -e l ; do
13 [[ -z $l ]] && continue
37 if [[ -n $2 && -z ${2//[-+]} ]] ; then
42 set -- seek $(( curr ${2:0:1} off ))
49 if [[ $2 == "n" ]] ; then
52 e="+----[ end of Subtitles Track ]"
55 if [[ $l == "$e" ]] ; then
57 elif [[ $l == "| "* ]] ; then
59 if [[ $l == *" *" ]] ; then
61 if [[ $l != "$e" ]] ; then
69 kdialog --msgbox "$l" &