annotate TOOLS/mpconsole.sh @ 36895:5616bd62fa26

Fix bug with hpotmeter/vpotmeter in the Win32 GUI. Allow a hpotmeter/vpotmeter without button. (The rendering should be fixed, actually, because it only renders the button but not the phases image.)
author ib
date Tue, 11 Mar 2014 12:48:59 +0000
parents 305dc504c407
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
27198
305dc504c407 Give all shell scripts a .sh suffix for consistency.
diego
parents:
diff changeset
1 #!/bin/sh
305dc504c407 Give all shell scripts a .sh suffix for consistency.
diego
parents:
diff changeset
2 # Script to run mplayer on the console (fbdev/mga_vid/etc) without
305dc504c407 Give all shell scripts a .sh suffix for consistency.
diego
parents:
diff changeset
3 # the console text and/or flashing cursor getting in the way.
305dc504c407 Give all shell scripts a .sh suffix for consistency.
diego
parents:
diff changeset
4 # Written by Rich Felker.
305dc504c407 Give all shell scripts a .sh suffix for consistency.
diego
parents:
diff changeset
5
305dc504c407 Give all shell scripts a .sh suffix for consistency.
diego
parents:
diff changeset
6 trap "tput cnorm ; exit 1" SIGQUIT SIGINT EXIT
305dc504c407 Give all shell scripts a .sh suffix for consistency.
diego
parents:
diff changeset
7 res=`PATH="$PATH:/usr/sbin" fbset | grep geometry | sed 's/^ *//'`
305dc504c407 Give all shell scripts a .sh suffix for consistency.
diego
parents:
diff changeset
8 width=`echo "$res" | cut -d' ' -f2`
305dc504c407 Give all shell scripts a .sh suffix for consistency.
diego
parents:
diff changeset
9 height=`echo "$res" | cut -d' ' -f3`
305dc504c407 Give all shell scripts a .sh suffix for consistency.
diego
parents:
diff changeset
10 tput civis
305dc504c407 Give all shell scripts a .sh suffix for consistency.
diego
parents:
diff changeset
11 clear
305dc504c407 Give all shell scripts a .sh suffix for consistency.
diego
parents:
diff changeset
12 mplayer -vo mga -screenw "$width" -screenh "$height" "$@" >/dev/null 2>&1