From d3b21c80d4dbf66130064f4688f79f0ba7b22c41 Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sat, 21 Mar 2009 03:03:54 +0000 Subject: [PATCH] nethack: show (and style) meta rows by default --- Shiar_Sheet/Keyboard.pm | 1 + nethack.plp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Shiar_Sheet/Keyboard.pm b/Shiar_Sheet/Keyboard.pm index 9456b7d..05df107 100644 --- a/Shiar_Sheet/Keyboard.pm +++ b/Shiar_Sheet/Keyboard.pm @@ -90,6 +90,7 @@ sub print_key { $keytxt .= $self->{sign}->{$1} while $flags =~ s/(?:^| )(arg[a-ln-z]?)\b//; # arguments $keytxt .= "$self->{sign}->{motion}" if $flags =~ s/ ?\bargm\b//; # motion argument $keytxt =~ s{\^(?=.)}{^}; # element around ctrl-identifier + $keytxt =~ s{\+(?=.)}{+}; # meta my $onclick = $flags =~ s/ ?\bmode(\S*)// && defined $self->{keys}{$1} && sprintf( ' onclick="setmode(%s)"', $1 eq '' ? '' : sprintf(q{'mode%s'}, escapeclass($1)) diff --git a/nethack.plp b/nethack.plp index b6f8a4a..ca7433e 100644 --- a/nethack.plp +++ b/nethack.plp @@ -53,7 +53,7 @@ $header{content_type} = "text/html; charset=$sign{charset}"; use Shiar_Sheet::Keyboard; my $keys = Shiar_Sheet::Keyboard->new({do 'nethack.inc.pl'}); $keys->map($get{map}) or undef $get{map}; -$keys->print_rows($get{static}); +$keys->print_rows($get{static} || '4321-421'); :> -- 2.30.0