termcol: fix index numbers of 88-colour greyscale ramp
[sheet.git] / mutt.plp
1 <(common.inc.plp)><:
2         our $VERSION = 'v1.0';
3
4         use Shiar_Sheet::KeySigns qw(%sign);
5
6         $header{content_type} = "text/html; charset=$sign{charset}";
7
8 :><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
9  "http://www.w3.org/TR/html4/loose.dtd">
10 <html lang="en">
11
12 <head>
13 <meta http-equiv="content-type" content="<:= $header{content_type} :>">
14 <title>mutt cheat sheet</title>
15 <meta name="description" content="Cheat sheet for the Mutt e-mail client, showing the default binding for each key.">
16 <meta name="keywords" content="mutt, MUA, email, client, sheet, cheat, reference, overview, commands, keyboard">
17 <:= stylesheet(qw'light dark circus mono red terse') :>
18 <!--[if lte IE 6]><style> .help dl.legend dt {margin:0 0 1px} </style><![endif]-->
19 <!--[if lte IE 7]><style> .help dl.legend dd {float:none} </style><![endif]--><:
20         our $showkeys = exists $get{keys} && $get{keys} ne '0';
21         print "\n".'<style type="text/css"> .no {visibility:hidden} </style>'
22                 unless $showkeys;
23         print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
24                 if $showkeys and $get{keys} eq 'ghost';
25 :>
26 <link rel="icon" type="image/png" href="/clip.png">
27 <script type="text/javascript" src="/keys.js"></script>
28
29 <body id="mutt">
30
31 <h1>Mutt cheat sheet</h1>
32
33 <h2>index (default)</h2>
34
35 <ul id="rows">
36
37 <li class="row">
38         <ul class="keys omni">
39         <li class="me chr27" onclick="setmode()"><b>Esc</b> +
40                 <!-- not as static anymore, but never bothered; just see ^[ -->
41         </ul>
42 </li>
43
44 <:
45 use Shiar_Sheet::Keyboard;
46 my $keys = Shiar_Sheet::Keyboard->new({do 'mutt.inc.pl'});
47 $keys->map($get{map}) or undef $get{map};
48 $keys->print_rows($get{rows});
49 :>
50 </ul>
51
52 <hr>
53
54 <div class="help">
55         <div class="left">
56                 <dl class="legend legend-types">
57                 <dt class="ci">aside
58                         <dd>Temporarily display something without changing state.
59                 <dt class="pm">select
60                         <dd>Scroll list and/or select a different line.
61                 <dt class="po">search
62                         <dd>Go to a specific message entry.
63                 <dt class="co">edit
64                         <dd>Modify message flags or contents.
65                 <dt class="mi">command
66                         <dd>Any other action which does not alter an existing message.
67                 <dt class="mo">send
68                         <dd>Prepare and/or send a (new) message.
69                 <dt class="mv">leave
70                         <dd>Exit the opened folder.
71                 <dt class="me">display
72                         <dd>Permanently alter/toggle current view.
73                 </dl>
74         </div>
75
76         <div class="right">
77                 <dl class="legend legend-options">
78                 <dt>key<:= $sign{arg} :>
79                         <dd>Commands with a dot need an argument afterwards.
80                 </dl>
81
82                 <ul class="legend legend-set">
83                 <li>keyboard <strong>map</strong> is
84                         <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
85                 <li><strong>ascii</strong> mode is
86                         <:= defined $sign{-ascii} && 'forced ' :><em><:=
87                                 $sign{-ascii} ? 'on' : 'off' :></em>
88                 <li><strong>keys</strong> are
89                         <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
90                                 !exists $get{keys} && ' by default' :>
91                 <li>default <strong>style</strong> is
92                         <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
93                 </ul>
94         </div>
95 </div>
96
97 <p class="footer">
98         <a href="/" rel="home">sheet.shiar.nl</a>/mutt.<a href="/source/mutt.plp"
99          rel="code" title="Written in Perl">plp</a>
100         <a href="http://git.shiar.nl/sheet.git/history/HEAD:/mutt.plp"
101          rel="vcs-git" title="Git repository"><:= $VERSION :></a>
102         created by <a href="http://shiar.nl/" rel="author">Shiar</a> <:= $sign{sep} :>
103         <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="copyright"
104          title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>
105 </p>
106
107 </html>