4 use Shiar_Sheet::KeySigns qw(%sign);
6 $header{content_type} = "text/html; charset=$sign{charset}";
8 :><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
9 "http://www.w3.org/TR/html4/loose.dtd">
13 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
14 <title>mplayer cheat sheet</title>
15 <:= stylesheet(qw'light dark circus mono red terse') :>
16 <!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
17 <!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
18 our $showkeys = exists $get{keys} && $get{keys} ne '0';
19 print "\n".'<style type="text/css"> .no {visibility:hidden} </style>'
21 print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
22 if $showkeys and $get{keys} eq 'ghost';
24 <script type="text/javascript" src="/keys.js"></script>
28 <h1>MPlayer cheat sheet</h1>
30 <h2>index (default)</h2>
35 <ul class="keys omni">
36 <li class="mo chr27" onclick="setmode()"><b>Esc</b> q
37 <!-- not as static anymore, but never bothered; just see ^[ -->
42 use Shiar_Sheet::Keyboard;
43 my $keys = Shiar_Sheet::Keyboard->new({do 'mplayer.inc.pl'});
44 $keys->map($get{map}) or undef $get{map};
45 $keys->print_rows($get{rows}, [1,0]);
53 <dl class="legend legend-types">
55 <dd>Print information or change display.
56 <dt class="pm">subtitles
57 <dd>Alter subtitle selection and settings.
59 <dd>Video output adjustment.
61 <dd>Sound (track) configuration.
62 <dt class="mo">playback
64 <dt class="me">general
65 <dd>Other MPlayer features.
70 <dl class="legend legend-options">
71 <dt>key<:= $sign{arg} :>
72 <dd>Commands with a dot need an argument afterwards.
73 <dt class="ext">optional
74 <dd>Some features depend on setup and/or parameters.
77 <ul class="legend legend-set">
78 <li>keyboard <strong>map</strong> is
79 <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
80 <li><strong>ascii</strong> mode is
81 <:= defined $sign{-ascii} && 'forced ' :><em><:=
82 $sign{-ascii} ? 'on' : 'off' :></em>
83 <li><strong>keys</strong> are
84 <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
85 !exists $get{keys} && ' by default' :>
86 <li>default <strong>style</strong> is
87 <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
93 <a href="/" rel="home">sheet.shiar.nl</a>/mplayer.<a href="/source/mplayer.plp"
94 rel="code" title="Written in Perl">plp</a>
95 <a href="http://git.shiar.nl/sheet.git/history/HEAD:/mplayer.plp"
96 rel="vcs-git" title="Git repository"><:= $VERSION :></a>
97 created by <a href="http://shiar.nl/" rel="author">Shiar</a> <:= $sign{sep} :>
98 <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="copyright"
99 title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>