4 use Shiar_Sheet::KeySigns qw(%sign); # dependant on $get{ascii}
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>readline cheat sheet</title>
15 <meta name="description" content="Reference sheet of default key bindings for GNU readline, used in line-editing in most Unix software, notably emacs and bash.">
16 <meta name="keywords" content="readline, gnu, bash, emacs, sheet, cheat, reference, overview, keyboard, editing, curses">
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>'
23 print "\n".'<style type="text/css"> .no, .alias {opacity:.5} </style>'
24 if $showkeys and $get{keys} eq 'ghost';
26 <link rel="icon" type="image/png" href="/clip.png">
27 <script type="text/javascript" src="/keys.js"></script>
31 <h1>readline cheat sheet</h1>
33 <h2>default emacs mode</h2>
38 <ul class="keys omni">
39 <li class="me" onclick="setmode()"><b>Esc</b> +
44 use Shiar_Sheet::Keyboard;
45 my $keys = Shiar_Sheet::Keyboard->new({do 'readline.inc.pl'});
46 $keys->map($get{map}) or undef $get{map};
47 $keys->print_rows($get{rows} || '^x=213', [4,3,2]);
55 <dl class="legend legend-types">
57 <dd>Info command: shows/does something without altering anything.
60 <dt class="co">history
61 <dd>Replace contents involving kill ring, undo, or command history.
63 <dd>Alter current text (filtering or completion).
67 <dd>Miscellaneous commands.
69 <dd>Additional key functionality (click to view).
74 <dl class="legend legend-options">
75 <dt>key<:= $sign{arg} :>
76 <dd>Commands with a dot need a char argument afterwards.
77 <dt class="new">>v2.0
78 <dd>Unavailable before readline version 2.1 (1997).
80 <dd>Default assignment in Bash shells, but not common readline.
83 <ul class="legend legend-set">
84 <li>keyboard <strong>map</strong> is
85 <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
86 <li><strong>ascii</strong> mode is
87 <:= defined $sign{-ascii} && 'forced ' :><em><:=
88 $sign{-ascii} ? 'on' : 'off' :></em>
89 <li><strong>keys</strong> are
90 <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
91 !exists $get{keys} && ' by default' :>
92 <li>default <strong>style</strong> is
93 <:= defined $get{style} && 'set to ' :><em><:= $style :></em>
99 <a href="/" rel="home">sheet.shiar.nl</a>/readline.<a href="/source/readline.plp"
100 rel="code" title="Written in Perl">plp</a>
101 <a href="http://git.shiar.nl/sheet.git/history/HEAD:/readline.plp"
102 rel="vcs-git" title="Git repository"><:= $VERSION :></a>
103 created by <a href="http://shiar.nl/" rel="author">Shiar</a> <:= $sign{sep} :>
104 <a href="http://www.fsf.org/licensing/licenses/agpl-3.0.html" rel="copyright"
105 title="Licensed under the GNU Affero General Public License, version 3">AGPLv3</a>