def command(cmd,match = //)
      @stdin.puts(cmd)
      response = ""
      until response =~ match
        response = @stdout.gets
      end
      response.gsub("\e[A\r\e[K","")
    end
def command(cmd,match = //)
      @stdin.puts(cmd)
      response = ""
      until response =~ match
        response = @stdout.gets
      end
      response.gsub("\e[A\r\e[K","")
    end
Initializes a new instance of MPlayer.
 set :path to point to the location of mplayer
 defaults to '/usr/bin/mplayer'
 commands command to mplayer stdin and retrieves stdout.
 If match is provided, fast-forwards stdout to matching response.