mirror of
https://github.com/mpv-player/mpv
synced 2025-03-11 08:37:59 +00:00
console mplayer launcher - by Rich Felker <dalias@aerifal.cx>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4205 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
bcc94e1ad0
commit
50908bc89e
12
TOOLS/mpconsole
Executable file
12
TOOLS/mpconsole
Executable file
@ -0,0 +1,12 @@
|
||||
#!/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=`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
|
Loading…
Reference in New Issue
Block a user