view TOOLS/mpconsole.sh @ 31152:aee6d64fd1a6

make configure use pkg-config for fribidi checks fribidi upstream has dropped fribidi-config in favor of pkg-config now: http://lists.freedesktop.org/archives/fribidi/2008-May/000532.html This commit fixes: http://bugzilla.mplayerhq.hu/show_bug.cgi?id=1675 https://launchpad.net/bugs/556200 http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=582784
author siretart
date Mon, 24 May 2010 19:32:17 +0000
parents 305dc504c407
children
line wrap: on
line source

#!/bin/sh
# Script to run mplayer on the console (fbdev/mga_vid/etc) without
# the console text and/or flashing cursor getting in the way.
# Written by Rich Felker.

trap "tput cnorm ; exit 1" SIGQUIT SIGINT EXIT
res=`PATH="$PATH:/usr/sbin" fbset | grep geometry | sed 's/^ *//'`
width=`echo "$res" | cut -d' ' -f2`
height=`echo "$res" | cut -d' ' -f3`
tput civis
clear
mplayer -vo mga -screenw "$width" -screenh "$height" "$@" >/dev/null 2>&1