overhaul keyboard module include syntax
[sheet.git] / readline.plp
index 0488d87ecd561ad427fdd03599d7b82034afd3d8..a7be846f78e519aee5f41bf9737d91d6d771882b 100644 (file)
@@ -2,7 +2,7 @@
 
 Html({
        title => 'readline cheat sheet',
-       version => 'v1.0',
+       version => 'v1.1',
        description => [
                "Reference sheet of default key bindings for GNU readline,",
                "used for line-editing in most Unix software, notably Emacs and Bash.",
@@ -29,8 +29,10 @@ Html({
 </li>
 
 <:
-use Shiar_Sheet::Keyboard;
-my $keys = Shiar_Sheet::Keyboard->new({do 'readline.inc.pl'});
+use Shiar_Sheet::Keyboard 2;
+my $info = do 'readline.eng.inc.pl' or die $@;
+$info->{def} = do 'readline.inc.pl';
+my $keys = Shiar_Sheet::Keyboard->new($info);
 $keys->map($get{map}) or undef $get{map};
 $keys->print_rows($get{rows} || '^x=213', [4,3,2]);
 :>