4 title => 'readline cheat sheet',
7 "Reference sheet of default key bindings for GNU readline,",
8 "used for line-editing in most Unix software, notably Emacs and Bash.",
11 readline gnu bash emacs sheet cheat reference overview keyboard editing curses
13 charset => $sign{charset},
14 stylesheet => [qw'light dark circus mono red terse'],
19 <h1>readline cheat sheet</h1>
21 <h2>default emacs mode</h2>
26 <ul class="keys omni">
27 <li class="me" onclick="setmode()"><b>Esc</b> +
32 use Shiar_Sheet::Keyboard;
33 my $keys = Shiar_Sheet::Keyboard->new({do 'readline.inc.pl'});
34 $keys->map($get{map}) or undef $get{map};
35 $keys->print_rows($get{rows} || '^x=213', [4,3,2]);
43 <dl class="legend legend-types">
45 <dd>Info command: shows/does something without altering anything.
48 <dt class="co">history
49 <dd>Replace contents involving kill ring, undo, or command history.
51 <dd>Alter current text (filtering or completion).
55 <dd>Miscellaneous commands.
57 <dd>Additional key functionality (click to view).
62 <dl class="legend legend-options">
63 <dt>key<:= $sign{arg} :>
64 <dd>Commands with a dot need a char argument afterwards.
65 <dt class="new">>v2.0
66 <dd>Unavailable before readline version 2.1 (1997).
68 <dd>Default assignment in Bash shells, but not common readline.
71 <ul class="legend legend-set">
72 <li>keyboard <strong>map</strong> is
73 <:= $get{map} ? 'set to ' : '' :><em><:= $keys->{map} :></em>
74 <li><strong>ascii</strong> mode is
75 <:= defined $sign{-ascii} && 'forced ' :><em><:=
76 $sign{-ascii} ? 'on' : 'off' :></em>
77 <li><strong>keys</strong> are
78 <em><:= $showkeys ? 'always shown' : 'hidden if unassigned' :></em><:=
79 !exists $get{keys} && ' by default' :>
80 <li>default <strong>style</strong> is
81 <:= defined $get{style} && 'set to ' :><em><:= $style :></em>