mirror of
https://github.com/mpv-player/mpv
synced 2024-11-18 21:16:10 +01:00
630a8f7b1a
Idea by D Richard Felker III. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7697 b3059339-0415-0410-9bf9-f77b7e298cf2
13 lines
444 B
Bash
Executable File
13 lines
444 B
Bash
Executable File
#!/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
|