Term-TtyRec-Plus-0.09/000755 000765 000024 00000000000 11725440200 015125 5ustar00sartakstaff000000 000000 Term-TtyRec-Plus-0.09/bin/000755 000765 000024 00000000000 11725440200 015675 5ustar00sartakstaff000000 000000 Term-TtyRec-Plus-0.09/Changes000644 000765 000024 00000001607 11725437755 016451 0ustar00sartakstaff000000 000000 Revision history for Term-TtyRec-Plus 0.09 2012-03-06 Add ttytime script (Jesse Luehrs) 0.08 2012-02-24 Add ttyplay script (Jesse Luehrs) 0.07 Fri Jun 5 00:08:43 EST 2009 Modernize the distribution. 0.06 Mon Feb 26 01:14:20 UTC 2007 Fixed a bug with time_threshold. 0.05 Mon Feb 19 04:57:21 UTC 2007 Note dependency on IO::Uncompress::Bunzip2. Oops. :) 0.04 Mon Feb 12 00:55:30 UTC 2007 Improve tests. 0.03 Sun Feb 11 23:40:37 UTC 2007 Add transparent bzip2 support via IO::Uncompress::Bunzip2. rewind() on an unseekable filehandle will die. 0.02 Fri Dec 15 22:03:23 UTC 2006 Add grep() method to look for the next frame matching criteria. Add rewind() to reset state. If infile and filehandle are both undef, use STDIN. 0.01 Thu Dec 14 10:00:57 UTC 2006 First version. Term-TtyRec-Plus-0.09/inc/000755 000765 000024 00000000000 11725440200 015676 5ustar00sartakstaff000000 000000 Term-TtyRec-Plus-0.09/lib/000755 000765 000024 00000000000 11725440200 015673 5ustar00sartakstaff000000 000000 Term-TtyRec-Plus-0.09/Makefile.PL000644 000765 000024 00000000443 11725437732 017120 0ustar00sartakstaff000000 000000 # Load the Module::Install bundled in ./inc/ use inc::Module::Install; # Define metadata name 'Term-TtyRec-Plus'; all_from 'lib/Term/TtyRec/Plus.pm'; githubmeta; requires 'IO::Uncompress::Bunzip2'; install_script 'bin/ttyplay'; install_script 'bin/ttytime'; auto_install; WriteAll; Term-TtyRec-Plus-0.09/MANIFEST000644 000765 000024 00000001314 11725440174 016267 0ustar00sartakstaff000000 000000 bin/ttyplay bin/ttytime Changes inc/Module/AutoInstall.pm inc/Module/Install.pm inc/Module/Install/AutoInstall.pm inc/Module/Install/Base.pm inc/Module/Install/Can.pm inc/Module/Install/Fetch.pm inc/Module/Install/GithubMeta.pm inc/Module/Install/Include.pm inc/Module/Install/Makefile.pm inc/Module/Install/Metadata.pm inc/Module/Install/Scripts.pm inc/Module/Install/Win32.pm inc/Module/Install/WriteAll.pm lib/Term/TtyRec/Plus.pm Makefile.PL MANIFEST This list of files META.yml README t/00-load.t t/01-read.t t/02-parameters.t t/03-filter.t t/04-failure.t t/05-grep.t t/06-rewind.t t/07-bzip2.t t/99-bugs.t t/malformed-data.ttyrec t/malformed-header.ttyrec t/nethack.ttyrec t/simple.ttyrec t/simple.ttyrec.bz2 Term-TtyRec-Plus-0.09/META.yml000644 000765 000024 00000001307 11725440154 016407 0ustar00sartakstaff000000 000000 --- abstract: 'read a ttyrec' author: - 'Shawn M Moore, C' build_requires: ExtUtils::MakeMaker: 6.42 configure_requires: ExtUtils::MakeMaker: 6.42 distribution_type: module generated_by: 'Module::Install version 1.01' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: 1.4 name: Term-TtyRec-Plus no_index: directory: - inc - t requires: IO::Uncompress::Bunzip2: 0 resources: homepage: http://github.com/sartak/Term-TtyRec-Plus/tree license: http://dev.perl.org/licenses/ repository: type: git url: git://github.com/sartak/Term-TtyRec-Plus.git web: http://github.com/sartak/Term-TtyRec-Plus/tree version: 0.09 Term-TtyRec-Plus-0.09/README000644 000765 000024 00000002404 11721776455 016031 0ustar00sartakstaff000000 000000 NAME Term::TtyRec::Plus - read a ttyrec Term::TtyRec::Plus is used to read the individual frames of a ttyrec. It allows you to specify a callback that is run before the caller receives a frame's information. For example, you can modify the timestamp of a frame and that change will be respected in all further timestamps. VERSION 0.06 RECENT MAJOR CHANGES 0.04 - improve tests 0.03 - add transparent bzip2 support via IO::Uncompress::Bunzip2. INSTALLATION To install this module, run the following commands: perl Makefile.PL make make test make install SUPPORT AND DOCUMENTATION After installing, you can find documentation for this module with the perldoc command. perldoc Term::TtyRec::Plus You can also look for information at: Search CPAN http://search.cpan.org/dist/Term-TtyRec-Plus CPAN Request Tracker: http://rt.cpan.org/NoAuth/Bugs.html?Dist=Term-TtyRec-Plus AnnoCPAN, annotated CPAN documentation: http://annocpan.org/dist/Term-TtyRec-Plus CPAN Ratings: http://cpanratings.perl.org/d/Term-TtyRec-Plus COPYRIGHT AND LICENCE Copyright (C) 2006 Shawn M Moore This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. Term-TtyRec-Plus-0.09/t/000755 000765 000024 00000000000 11725440200 015370 5ustar00sartakstaff000000 000000 Term-TtyRec-Plus-0.09/t/00-load.t000644 000765 000024 00000000231 11721776455 016731 0ustar00sartakstaff000000 000000 use Test::More tests => 1; BEGIN { use_ok( 'Term::TtyRec::Plus' ); } diag( "Testing Term::TtyRec::Plus $Term::TtyRec::Plus::VERSION, Perl $], $^X" ); Term-TtyRec-Plus-0.09/t/01-read.t000644 000765 000024 00000006364 11721776455 016743 0ustar00sartakstaff000000 000000 use Test::More tests => 10 # initial sanity checks + 5 # number of frames * 11 # tests per frame + 1 # post-read tests ; use Term::TtyRec::Plus; # check whether two floating point values are close enough sub is_float { my ($a, $b, $test) = @_; if (abs($a - $b) < 1e-4) { pass($test); } else { fail($test); diag("Expected $a to be close to $b."); } } my $t = Term::TtyRec::Plus->new( infile => "t/simple.ttyrec", ); isnt($t, undef, "new returns something"); can_ok($t, qw(next_frame infile filehandle time_threshold frame_filter frame prev_timestamp relative_time accum_diff)); # initial settings is($t->infile(), "t/simple.ttyrec", "t->infile() set correctly"); isnt($t->filehandle(), undef, "t->filehandle() defined"); is($t->time_threshold(), undef, "t->time_threshold() initially undef"); isnt($t->frame_filter(), undef, "t->frame_filter() defined"); is($t->frame(), 0, "t->frame() initially 0"); is($t->prev_timestamp(), undef, "t->prev_timestamp() initially undef"); is($t->relative_time(), 0, "t->relative_time() initially 0"); is($t->accum_diff(), 0, "t->accum_diff() initially 0"); my @expected_outputs = ( [undef, undef], # for ease with frame_number, etc. ["frame 1", 1166173605.32873], ["frame 2", 1166173605.90382], ["frame 3", 1166173606.20291], ["penultimate frame", 1166173606.83821], ["final frame", 1166173608.21921], ); my $frame_number = 0; my $relative_time = 0; while (my $frame_ref = $t->next_frame) { ++$frame_number; my @frame = @{ $expected_outputs[$frame_number] }; is($frame_ref->{frame}, $frame_number, "Frame number ($frame_number) correct (from frame_ref)"); is($frame_ref->{frame}, $frame_number, "Frame number ($frame_number) correct (from t->frame())"); is($frame_ref->{data}, $frame[0], "Frame $frame_number data block is correct"); is_float($frame_ref->{orig_timestamp}, $frame[1], "Frame $frame_number orig_timestamp is correct"); is_float($frame_ref->{diffed_timestamp}, $frame[1], "Frame $frame_number diffed_timestamp is correct"); is_float($frame_ref->{timestamp}, $frame[1], "Frame $frame_number timestamp is correct"); is_float($t->prev_timestamp(), $frame[1], "Frame $frame_number timestamp is correct (from t->prev_timestamp())"); if ($frame_number == 1) { is($frame_ref->{prev_timestamp}, undef, "Frame $frame_number prev_timestamp is correct (from frame_ref)"); is($frame_ref->{diff}, 0, "Frame $frame_number diff is correct"); } else { is_float($frame_ref->{prev_timestamp}, $expected_outputs[$frame_number - 1][1], "Frame $frame_number prev_timestamp is correct"); is_float($frame_ref->{diff}, $frame[1] - $expected_outputs[$frame_number - 1][1], "Frame $frame_number diff is correct"); } $relative_time += $frame_number == 1 ? 0 : $frame_ref->{diff}; is_float($frame_ref->{relative_time}, $relative_time, "Frame $frame_number relative time (from frame_ref)"); is_float($t->relative_time(), $relative_time, "Frame $frame_number relative time (from t->relative_time())"); } is($t->next_frame, undef, "next_frame returns undef after EOF"); Term-TtyRec-Plus-0.09/t/02-parameters.t000644 000765 000024 00000005002 11721776455 020160 0ustar00sartakstaff000000 000000 use Test::More tests => 2 + 1 + 1 + 1 + 1; use Term::TtyRec::Plus; # "constants" my $ttyrec = "t/nethack.ttyrec"; my $frames = 1783; my $time = 434.991698026657; my $time2 = 2.890479; # check whether two floating point values are close enough sub is_float { my ($a, $b, $test) = @_; if (abs($a - $b) < 1e-4) { pass($test); } else { fail($test); diag("Expected $a to be close to $b."); } } my $t; # testing time_threshold ####################################################### my $thresh = .02; $t = Term::TtyRec::Plus->new( infile => $ttyrec, time_threshold => $thresh, ); my $trunc = 0; my $trunc2 = 0; my $time_truncated = 0; while (my $frame_ref = $t->next_frame()) { $trunc += $frame_ref->{diff}; my $calced_diff = defined($frame_ref->{prev_timestamp}) ? $frame_ref->{timestamp} - $frame_ref->{prev_timestamp} : 0; $trunc2 += $calced_diff; $calced_diff = $thresh if $calced_diff > $thresh; $time_truncated += $calced_diff; } is_float($trunc, $time_truncated, "time_threshold works with diffs"); is_float($trunc2, $time_truncated, "time_threshold works with timestamp - prev_timestamp"); # testing filehandle ########################################################### open(my $handle, '<', $ttyrec); $t = Term::TtyRec::Plus->new( filehandle => $handle, ); my $t_time = 0; while (my $frame_ref = $t->next_frame()) { $t_time += $frame_ref->{diff}; } is_float($t_time, $time, "filehandle argument works well enough"); # testing infile + filehandle ################################################## open(my $handle2, '<', $ttyrec); $t = Term::TtyRec::Plus->new( filehandle => $handle2, infile => "t/simple.ttyrec", ); $t_time = 0; while (my $frame_ref = $t->next_frame()) { $t_time += $frame_ref->{diff}; } is_float($t_time, $time, "filehandle takes precedence over infile"); # testing bzip2 on filehandle ################################################## open(my $handle3, '<', 't/simple.ttyrec.bz2'); $t = Term::TtyRec::Plus->new( filehandle => $handle3, bzip2 => 1, ); $t_time = 0; while (my $frame_ref = $t->next_frame()) { $t_time += $frame_ref->{diff}; } is_float($t_time, $time2, "bzip2 on a filehandle works"); # testing bzip2 on infile ###################################################### $t = Term::TtyRec::Plus->new( infile => 't/simple.ttyrec.bz2', ); $t_time = 0; while (my $frame_ref = $t->next_frame()) { $t_time += $frame_ref->{diff}; } is_float($t_time, $time2, "bzip2 on infile works"); Term-TtyRec-Plus-0.09/t/03-filter.t000644 000765 000024 00000003310 11721776455 017303 0ustar00sartakstaff000000 000000 use Test::More tests => 7; use Term::TtyRec::Plus; # "constants" my $ttyrec = "t/nethack.ttyrec"; my $frames = 1783; my $time = 434.991698026657; # check whether two floating point values are close enough sub is_float { my ($a, $b, $test) = @_; if (abs($a - $b) < 1e-4) { pass($test); } else { fail($test); diag("Expected $a to be close to $b."); } } my $callback_called = 0; sub filter { my ($data_ref, $time_ref, $prev_ref) = @_; ++$callback_called; $$time_ref = $$prev_ref + ($$time_ref - $$prev_ref) / 2 if defined $$prev_ref; $$data_ref =~ s/Eidolos/Stumbly/ig; } my $t = Term::TtyRec::Plus->new( infile => $ttyrec, frame_filter => \&filter, ); is($t->frame_filter(), \&filter, "frame_filter set properly"); my $diffs_full = 0; my $diffs = 0; my $relative_time = 0; my $eidolos = 0; while (my $frame_ref = $t->next_frame()) { $diffs_full += $frame_ref->{diffed_timestamp} - $frame_ref->{prev_timestamp} if $frame_ref->{frame} > 1; $diffs += $frame_ref->{diff}; $relative_time = $frame_ref->{relative_time}; $eidolos += $frame_ref->{data} =~ /Eidolos/i; } is($callback_called, $frames, "Callback called once per frame."); is_float($diffs_full, $time, "Sum of all time differences pre-filter equals the ttyrec's total time"); is_float($diffs, $time / 2, "Sum of all time differences equals the ttyrec's total time halved"); is_float($relative_time, $time / 2, "Relative time of last frame equals the ttyrec's total time halved"); is_float($t->accum_diff(), -1 * ($time - $diffs), "t->accum_diff() reports the loss of half the total time"); is($eidolos, 0, "No appearances of string 'Eidolos', which was filtered out."); Term-TtyRec-Plus-0.09/t/04-failure.t000644 000765 000024 00000006117 11721776455 017456 0ustar00sartakstaff000000 000000 use Test::More tests => 12; use Term::TtyRec::Plus; my $frames_read; # test missing file ############################################################ $frames_read = 0; eval { my $t = Term::TtyRec::Plus->new( infile => "t/missing.ttyrec", ); my $time = 0; while (my $frame_ref = $t->next_frame()) { ++$frames_read; $time += $frame_ref->{diff}; } }; is($frames_read, 0, "exactly zero (well-formed) frames read"); like($@, qr/Unable to open 't\/missing\.ttyrec' for reading/, "\$@ contains the correct error"); # test negative time_threshold ################################################# $frames_read = 0; eval { my $t = Term::TtyRec::Plus->new( infile => "t/simple.ttyrec", time_threshold => -1, ); my $time = 0; while (my $frame_ref = $t->next_frame()) { ++$frames_read; $time += $frame_ref->{diff}; } }; is($frames_read, 0, "no frames read"); like($@, qr/Cannot have a negative time threshold/, "\$@ contains the correct error"); # test malformed ttyrec (header) ############################################### $frames_read = 0; eval { my $t = Term::TtyRec::Plus->new( infile => "t/malformed-header.ttyrec", ); my $time = 0; while (my $frame_ref = $t->next_frame()) { ++$frames_read; $time += $frame_ref->{diff}; } }; is($frames_read, 3, "exactly three (well-formed) frames read"); like($@, qr/Expected 12-byte header, got \d+ /, "\$@ contains the correct error"); # test malformed ttyrec (data) ################################################# $frames_read = 0; eval { my $t = Term::TtyRec::Plus->new( infile => "t/malformed-data.ttyrec", ); my $time = 0; while (my $frame_ref = $t->next_frame()) { ++$frames_read; $time += $frame_ref->{diff}; } }; is($frames_read, 1, "exactly one (well-formed) frame read"); like($@, qr/Expected 19-byte frame, got \d+ /, "\$@ contains the correct error"); # test filtering timestamp to -1 ############################################### $frames_read = 0; eval { sub bad_callback { my ($data, $time, $prev) = @_; $$time = -1; } my $t = Term::TtyRec::Plus->new( infile => "t/simple.ttyrec", frame_filter => \&bad_callback, ); my $time = 0; while (my $frame_ref = $t->next_frame()) { ++$frames_read; $time += $frame_ref->{diff}; } }; is($frames_read, 0, "no frames read"); like($@, qr/Unable to create a new header, \w+ portion of timestamp/, "\$@ contains the correct error"); # test bad grep() arg ########################################################## $frames_read = 0; eval { my $t = Term::TtyRec::Plus->new( infile => "t/simple.ttyrec", ); my $time = 0; while (my $frame_ref = $t->grep("I tell ya,", [qw/grep() was jsn's idea!!/])) { ++$frames_read; $time += $frame_ref->{diff}; } }; is($frames_read, 0, "no frames read"); like($@, qr/Each of grep\(\)'s arguments must be a subroutine, regular expression, or string;/, "\$@ contains the correct error"); Term-TtyRec-Plus-0.09/t/05-grep.t000644 000765 000024 00000001127 11721776455 016761 0ustar00sartakstaff000000 000000 use Test::More tests => 4; use Term::TtyRec::Plus; my $t = Term::TtyRec::Plus->new( infile => "t/nethack.ttyrec", ); my $frame_ref; $frame_ref = $t->grep("finger of death"); is($frame_ref->{frame}, 53, "t->grep(STRING) works"); $frame_ref = $t->grep(qr/Where do you want to jump\?/); is($frame_ref->{frame}, 77, "t->grep(REGEX) works"); $frame_ref = $t->grep(sub { $_[0]{timestamp} > 1165798100 } ); is($frame_ref->{frame}, 339, "t->grep(SUB) works"); $frame_ref = $t->grep("priestess of Ptah", sub { $_[0]{data} !~ /\bmace\b/ }); is($frame_ref->{frame}, 364, "multiarg t->grep() works"); Term-TtyRec-Plus-0.09/t/06-rewind.t000644 000765 000024 00000003201 11721776455 017310 0ustar00sartakstaff000000 000000 use Test::More tests => 2 # initial states * 5; # tests per initial state use Term::TtyRec::Plus; sub halve_time { my ($data_ref, $time_ref, $prev_ref) = @_; $$time_ref = $$prev_ref + ($$time_ref - $$prev_ref) / 2 if defined $$prev_ref; } foreach my $initial_state ( { frame => 0, accum_diff => 0, prev_timestamp => undef, relative_time => 0, }, { frame => 1101, accum_diff => -.3333, prev_timestamp => 1032981, relative_time => 1923, }, ) { my $t = Term::TtyRec::Plus->new( infile => "t/nethack.ttyrec", frame_filter => \&halve_time, %$initial_state, ); my $frame_ref; my $first_frame_ref = $t->next_frame(); while ($frame_ref = $t->next_frame()) { last if $frame_ref->{frame} == 100; } $t->rewind(); is($t->frame(), $initial_state->{frame}, "rewind() resets frame counter"); is($t->relative_time(), $initial_state->{relative_time}, "rewind() resets relative_time"); is($t->accum_diff(), $initial_state->{accum_diff}, "rewind() resets accum_diff"); is($t->prev_timestamp(), $initial_state->{prev_timestamp}, "rewind() resets prev_timestamp"); $frame_ref = $t->next_frame(); my $ok = 1; while (my ($k, $v) = each(%{$first_frame_ref})) { if (!defined($v)) { exists($frame_ref->{$k}) && !defined($frame_ref->{$k}) or $ok = 0; } else { $frame_ref->{$k} eq $v or $ok = 0; } } ok($ok, "All the frame_ref fields are set properly after a rewind()"); } Term-TtyRec-Plus-0.09/t/07-bzip2.t000644 000765 000024 00000006374 11721776455 017065 0ustar00sartakstaff000000 000000 use Test::More tests => 10 # initial sanity checks + 5 # number of frames * 11 # tests per frame + 1 # post-read tests ; use Term::TtyRec::Plus; # check whether two floating point values are close enough sub is_float { my ($a, $b, $test) = @_; if (abs($a - $b) < 1e-4) { pass($test); } else { fail($test); diag("Expected $a to be close to $b."); } } my $t = Term::TtyRec::Plus->new( infile => "t/simple.ttyrec.bz2", ); isnt($t, undef, "new returns something"); can_ok($t, qw(next_frame infile filehandle time_threshold frame_filter frame prev_timestamp relative_time accum_diff)); # initial settings is($t->infile(), "t/simple.ttyrec.bz2", "t->infile() set correctly"); isnt($t->filehandle(), undef, "t->filehandle() defined"); is($t->time_threshold(), undef, "t->time_threshold() initially undef"); isnt($t->frame_filter(), undef, "t->frame_filter() defined"); is($t->frame(), 0, "t->frame() initially 0"); is($t->prev_timestamp(), undef, "t->prev_timestamp() initially undef"); is($t->relative_time(), 0, "t->relative_time() initially 0"); is($t->accum_diff(), 0, "t->accum_diff() initially 0"); my @expected_outputs = ( [undef, undef], # for ease with frame_number, etc. ["frame 1", 1166173605.32873], ["frame 2", 1166173605.90382], ["frame 3", 1166173606.20291], ["penultimate frame", 1166173606.83821], ["final frame", 1166173608.21921], ); my $frame_number = 0; my $relative_time = 0; while (my $frame_ref = $t->next_frame) { ++$frame_number; my @frame = @{ $expected_outputs[$frame_number] }; is($frame_ref->{frame}, $frame_number, "Frame number ($frame_number) correct (from frame_ref)"); is($frame_ref->{frame}, $frame_number, "Frame number ($frame_number) correct (from t->frame())"); is($frame_ref->{data}, $frame[0], "Frame $frame_number data block is correct"); is_float($frame_ref->{orig_timestamp}, $frame[1], "Frame $frame_number orig_timestamp is correct"); is_float($frame_ref->{diffed_timestamp}, $frame[1], "Frame $frame_number diffed_timestamp is correct"); is_float($frame_ref->{timestamp}, $frame[1], "Frame $frame_number timestamp is correct"); is_float($t->prev_timestamp(), $frame[1], "Frame $frame_number timestamp is correct (from t->prev_timestamp())"); if ($frame_number == 1) { is($frame_ref->{prev_timestamp}, undef, "Frame $frame_number prev_timestamp is correct (from frame_ref)"); is($frame_ref->{diff}, 0, "Frame $frame_number diff is correct"); } else { is_float($frame_ref->{prev_timestamp}, $expected_outputs[$frame_number - 1][1], "Frame $frame_number prev_timestamp is correct"); is_float($frame_ref->{diff}, $frame[1] - $expected_outputs[$frame_number - 1][1], "Frame $frame_number diff is correct"); } $relative_time += $frame_number == 1 ? 0 : $frame_ref->{diff}; is_float($frame_ref->{relative_time}, $relative_time, "Frame $frame_number relative time (from frame_ref)"); is_float($t->relative_time(), $relative_time, "Frame $frame_number relative time (from t->relative_time())"); } is($t->next_frame, undef, "next_frame returns undef after EOF"); Term-TtyRec-Plus-0.09/t/99-bugs.t000644 000765 000024 00000001371 11721776455 017002 0ustar00sartakstaff000000 000000 use Test::More tests => 1; use Term::TtyRec::Plus; # check whether two floating point values are close enough sub is_float { my ($a, $b, $test) = @_; if (abs($a - $b) < 1e-4) { pass($test); } else { fail($test); diag("Expected $a to be close to $b."); } } ################################################################################ # 1. time_threshold did not work correctly my $t = Term::TtyRec::Plus->new( infile => "t/nethack.ttyrec", time_threshold => .01, ); my $time = 0; while (my $frame_ref = $t->next_frame) { $time += $frame_ref->{diff}; } is_float($time, 9.93914103507996, "time_threshold fix"); ################################################################################ Term-TtyRec-Plus-0.09/t/malformed-data.ttyrec000644 000765 000024 00000000062 11721776455 021523 0ustar00sartakstaff000000 000000 well-formed frame 1well-foTerm-TtyRec-Plus-0.09/t/malformed-header.ttyrec000644 000765 000024 00000000142 11721776455 022041 0ustar00sartakstaff000000 000000 well-formed frame 1well-formed frame 2malformed frameBADHEADERTerm-TtyRec-Plus-0.09/t/nethack.ttyrec000644 000765 000024 00001163730 11721776455 020300 0ustar00sartakstaff000000 000000 f|E\))05545444455554....@.4...Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:612996 Astral Plane $:0 HP: Astral Plane $:0 HP:117(123) Astral Plane $:0 HP:117(123) Pw:321(504) AC:-13 Exp:30 T:231675445f|E`A voice whispers: "Thou hast been worthy of me!"A--More--g|E An angel appears near you.g|E 117(123)  Pw:323(504) AC:-13 Exp:30 T:23168Ag|Eg|EUnknown command '^J'. 117(123)  Pw:323(504) AC:-13 Exp:30 T:23168j|E.j|Eb@What do you want to use or apply? [bcf-hj-lnsxBIPU or ?*] j|E{$  Do what?  a - Take something out of the bag of holding b - Put something into the bag of holding c - Both of the above(end) j|Eq + Take out what type of objects?  a - All types b - Comestibles c - Scrolls d - Potions e - Wands f - Tools A - Auto-select every item B - Items known to be Blessed C - Items known to be Cursed U - Items known to be Uncursed(end) k|E+k|Eu5 Take out what?   Comestibles  a - 5 uncursed C-rations  b - 3 uncursed food rations  c - an uncursed K-ration  Scrolls  d - an uncursed scroll called remove curse  e - 7 blessed scrolls of blank paper  f - a cursed scroll of blank paper  g - 2 blessed scrolls of charging named blessed  h - an uncursed scroll of earth  i - an uncursed scroll of fire  Potions  j - 2 uncursed potions of extra healing  k - a cursed potion of extra healing  l - an uncursed potion of full healing  m - 2 uncursed potions of gain ability  n - 2 uncursed potions of gain energy  o - 9 uncursed potions of healing  p - 3 blessed potions of healing  q - 7 potions of holy water  r - 2 uncursed potions of speed (1 of 2)m|EE #n|En -o|EH+s|Ev+t|E& +u|EG F a - 2 potions of unholy water  b - 2 uncursed potions of water  Wands  c - a thoroughly rusty wand of digging (0:5)  d - a blessed wand of enlightenment (0:10)  e - a wand of fire (0:5)  f - a wand of lightning (0:5)  g - a wand of striking (0:7)  h - a wand of striking (0:6)  i - a wand of teleportation (0:5)  Tools  j - a blessed oil lamp (2 of 2)x|EYr +x|E:  +||E+}|E"+~|E +~|E 55544455444455554....@.4..A~|E Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:612996 Astral Plane $:0 HP: Astral Plane $:0 HP:117(123) Astral Plane $:0 HP:117(123) Pw:323(504) AC:-13 Exp:30 T:23168z - an uncursed K-ration.--More--~|Ew>p - 2 blessed scrolls of charging named blessed.~|Eר--More--|E5i - an uncursed potion of full healing.|EI--More--|EA;Y - a thoroughly rusty wand of digging (0:5).|EA--More--|EJ3 'Z - a wand of fire (0:5).|Er3 >q - a wand of striking (0:7).--More--|E0r - a wand of teleportation (0:5).|EID - a blessed oil lamp. 117(123)  Pw:323(504) AC:-13 Exp:30 T:23168 54 444 4  544 |E--More--|EoYou hear a door open. 54 4|E |EUnknown command ' '. 117(123)  Pw:323(504) AC:-13 Exp:30 T:23168|ED|EqEWhat do you want to use or apply? [bcf-hj-lnq-sxBDIPUYZ or ?*] |E  Weapons  x - a +0 dwarvish mattock (alternate weapon; not wielded)  Wands  c - a wand of cancellation (0:6)  s - a wand of death (0:2)  f - a wand of death (0:3)  Y - a thoroughly rusty wand of digging (0:5)  l - a wand of digging (0:5)  g - a wand of digging  Z - a wand of fire (0:5)  j - a wand of secret door detection (0:9)  q - a wand of striking (0:7)  r - a wand of teleportation (0:5)  n - a wand of teleportation (0:4)  Tools  b - a blessed bag of holding  I - the Bell of Opening (0:2)  U - the uncursed Candelabrum of Invocation (7 candles attached)  D - a blessed oil lamp  k - an uncursed skeleton key named cold/fire/shk/pois/slp esp/fast  P - an uncursed towel  h - a blessed +0 unicorn horn  Gems (1 of 2)|ED+5554454544445555...44.@...AEidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:612996 Astral Plane $:0 HP: Astral Plane $:0 HP:117(123) Astral Plane $:0 HP:117(123) Pw:323(504) AC:-13 Exp:30 T:23168Your lamp is now on. 122(123)  Pw:326(504) AC:-13 Exp:30 T:23169-----|..---.|..---.|E$ SWhat do you want to use or apply? [bcf-hj-lnq-sxBDIPUYZ or ?*] |E0|EpYour lamp is now off. 122(123)  Pw:326(504) AC:-13 Exp:30 T:23169  122(123)  Pw:327(504) AC:-13 Exp:30 T:23170555   54444 5 4 5  54 4 54   A4 .  |Eú|EEWhat do you want to use or apply? [bcf-hj-lnq-sxBDIPUYZ or ?*] |Ew |Ex SThe Candelabrum of Invocation's candles burn brightly!--More--|E/HThe candles are being rapidly consumed! 122(123)  Pw:327(504) AC:-13 Exp:30 T:23170 5 55444 5   5 5 554 --5 54 ...44. .A-......-|Eu! 122(123)  Pw:328(504) AC:-13 Exp:30 T:2317153444   @. .---  |E]  Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|ET+555354445454454-------54|..@....4-...-----..A.|-..---.-|E!Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:612996 Astral Plane $:0 HP: Astral Plane $:0 HP:122(123) Astral Plane $:0 HP:122(123) Pw:328(504) AC:-13 Exp:30 T:23171You feel the amulet draining your energy away.|Em 122(123)  Pw:317(504) AC:-13 Exp:30 T:23171--More--|EIOdYou flail around a little. 122(123)  Pw:317(504) AC:-13 Exp:30 T:23171  123(123)  Pw:321(504) AC:-13 Exp:30 T:23172 5 5  554 44   4 5  545 54 454 A.|E  123(123)  Pw:321(504) AC:-13 Exp:30 T:23172 5  55 3 4   544445 54  4 4 A@.4 .-  |E,You hear a door open. |E% |E% .What do you want to remove? [oGO or ?*] |E)( Amulets O - an uncursed amulet of life saving (being worn) Rings o - an uncursed ring of levitation (on right hand) G - an uncursed ring of slow digestion (on left hand)(end) |E0V+|E0]You were wearing an uncursed ring of levitation (on right hand).--More--|EhYou float gently to the floor. 123(123)  Pw:322(504) AC:-13 Exp:30 T:23173|E|E,What do you want to throw? [xE or ?*] |E.N|EbNIn what direction? |E` =|E` $.=.=.=|Eb  123(123)  Pw:322(504) AC:-13 Exp:30 T:23173  123(123)  Pw:324(504) AC:-13 Exp:30 T:231745 5   35 44 5 4 4  445 5 44 .. 4A|ELA Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E+5535445444455-------44|...@....4-..A------....|-.----|EEidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:612996 Astral Plane $:0 HP: Astral Plane $:0 HP:123(123) Astral Plane $:0 HP:123(123) Pw:324(504) AC:-13 Exp:30 T:23174You feel the amulet draining your energy away.|E$d 123(123)  Pw:309(504) AC:-13 Exp:30 T:23174--More--|E)( UWhere do you want to jump?(For instructions type a ?)|Ec|E|E &|E: |E|-...@= -  |Eq-+-.| .@| -|E)- .@|E" .@|E 123(123)  Pw:309(504) AC:-13 Exp:30 T:23174  3  4    4 44   |EzYou hear a chugging sound. 123(123)  Pw:311(504) AC:-13 Exp:30 T:23175 54|EE,|Et,3What do you want to zap? [cfgjlnq-sYZ or ?*] |E1 Wands c - a wand of cancellation (0:6) s - a wand of death (0:2) f - a wand of death (0:3) Y - a thoroughly rusty wand of digging (0:5) l - a wand of digging (0:5) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:5) n - a wand of teleportation (0:4)(end) |EKP+3455444545|EIn what direction? |En*|En*|E]pThe door is razed! 123(123)  Pw:311(504) AC:-13 Exp:30 T:23175 3 &.44...A|EpFYou hear a door open. A|Ep--More--|E0 6The Angel of Moloch hurls a potion of confusion!|E0 !|E0 --More--|E EThe bottle crashes on your head and breaks into shards.|E< m 122(123)  Pw:311(504) AC:-13 Exp:30 T:23175--More--|E=You feel somewhat dizzy..!|E 122(123)  Pw:311(504) AC:-13 Exp:30 T:23175 Conf5 @|E~xYou hear a chugging sound. 4 &4 4  |E |E Unknown command ' '. 122(123)  Pw:311(504) AC:-13 Exp:30 T:23175 Conf|E*`|Er`EWhat do you want to use or apply? [bcf-hj-lnq-sxBDIPUYZ or ?*] |Ex}|E})You feel less confused now.|E~m 122(123)  Pw:315(504) AC:-13 Exp:30 T:23176--More--|E2x ?A mysterious force prevents you from teleporting!|E)|EUnknown command ' '. 122(123)  Pw:315(504) AC:-13 Exp:30 T:23176|EKl 122(123)  Pw:315(504) AC:-13 Exp:30 T:23176|EPick an object.|EL |E}|Ee|E|E |Ez & a major demon (Pestilence) [seen: normal vision, infravision] 122(123)  Pw:315(504) AC:-13 Exp:30 T:23176|EB  Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|Ex) u - confuse monster 2 enchantment 0%  v - restore ability 4 healing 0%  w - create monster 2 clerical 0% (2 of 2)|EB+Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:612996 Astral Plane $:0 HP: Astral Plane $:0 HP:122(123) Astral Plane $:0 HP:122(123) Pw:315(504) AC:-13 Exp:30 T:2317634&45444.4--A---------...||A...@=|---------|-----|Ey3What do you want to zap? [cfgjlnq-sYZ or ?*] |E%z Wands c - a wand of cancellation (0:6) s - a wand of death (0:2) f - a wand of death (0:3) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:5) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:5) n - a wand of teleportation (0:4)(end) |E +34&45444.4|E In what direction? |ET||EUc|The death ray hits the Angel of Moloch.|||E8U--More--|E#The death ray misses Pestilence. 122(123)  Pw:315(504) AC:-13 Exp:30 T:23176 3& 4.4A..A|E--More--|Eh The Angel of Moloch wields a long sword! 122(123)  Pw:317(504) AC:-13 Exp:30 T:23177 4.  5@454|E\m |Em 3What do you want to zap? [cfgjlnq-sYZ or ?*] |E E Wands c - a wand of cancellation (0:6) s - a wand of death (0:2) f - a wand of death (0:2) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:5) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:5) n - a wand of teleportation (0:4)(end) |E9+34.45@4544|EIn what direction? |E  122(123)  Pw:317(504) AC:-13 Exp:30 T:231773 4 45  & 4  @.A|E|E3What do you want to zap? [cfgjlnq-sYZ or ?*] |E Wands c - a wand of cancellation (0:6) s - a wand of death (0:2) f - a wand of death (0:2) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:5) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:4) n - a wand of teleportation (0:4)(end) |E! +344.5&4|E! In what direction? |EE||EE||EFYYou kill the invisible priestess of Moloch!|$|EWFs5060  122(123)  Pw:317(504) AC:-13 Exp:30 T:23177|EFBYou kill Pestilence!|%|EjGO238  122(123)  Pw:317(504) AC:-13 Exp:30 T:23177  122(123)  Pw:317(504) AC:-13 Exp:30 T:23177  123(123)  Pw:320(504) AC:-13 Exp:30 T:23178 3..|Eݾ Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|EB+344.5%4--$---------...||..A.@=|---------|-----|EݼEidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:623080 Astral Plane $:0 HP: Astral Plane $:0 HP:123(123) Astral Plane $:0 HP:123(123) Pw:320(504) AC:-13 Exp:30 T:23178You feel the amulet draining your energy away.|E"d 123(123)  Pw:307(504) AC:-13 Exp:30 T:23178--More--|E(Where do you want to jump?|E-(For instructions type a ?)|E|E~|E |E |E[.N..A@.|EU.........@.........@@. |E|........-.@.----$---   |Ei-----....@% |E55  5 4.N 4|EW 123(123)  Pw:307(504) AC:-13 Exp:30 T:23178The Angel of Moloch wields a long sword!|Et--More--|En The invisible priestess of Moloch wields a mace! 123(123)  Pw:308(504) AC:-13 Exp:30 T:23179.@|E= |E wUnknown command ' '. 123(123)  Pw:308(504) AC:-13 Exp:30 T:23179|EMc 123(123)  Pw:308(504) AC:-13 Exp:30 T:23179|EiG  Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E; +55-----.......5.........4.....N.......@A..@4-...%.@.-----$-----------.||.=|---------|-----|E*< Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:623080 Astral Plane $:0 HP: Astral Plane $:0 HP:123(123) Astral Plane $:0 HP:123(123) Pw:308(504) AC:-13 Exp:30 T:23179You feel the amulet draining your energy away.|EP< d 123(123)  Pw:293(504) AC:-13 Exp:30 T:23179--More--|EW (Where do you want to jump?|E -(For instructions type a ?)|EK! |ED|E|EP |E_X----@. |E@--@. |Eq@ .- .+ - |EF 123(123)  Pw:293(504) AC:-13 Exp:30 T:231795 5 455 A44.N 4A|EaThe Angel of Moloch zaps you with a magic missile!|||E7--More--|E<The magic missile whizzes by you!||E5CThe magic missile bounces!--More--|Ef3 'The magic missile whizzes by you!|E3 ,|--More--|E 9The magic missile hits the Angel of Moloch.|E% --More--|EF But it reflects from the Angel of Moloch's shield! 123(123)  Pw:294(504) AC:-13 Exp:30 T:23180-@.A@@..|E|EwUnknown command ' '. 123(123)  Pw:294(504) AC:-13 Exp:30 T:23180|E# c 123(123)  Pw:294(504) AC:-13 Exp:30 T:23180|E  Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E +5---------5-....@..-4........-55....A.@..+44...@N..--.%...-4----A-----------||=|---------|-----|E0 Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:623080 Astral Plane $:0 HP: Astral Plane $:0 HP:123(123) Astral Plane $:0 HP:123(123) Pw:294(504) AC:-13 Exp:30 T:23180You feel the amulet draining your energy away.|E] d 123(123)  Pw:287(504) AC:-13 Exp:30 T:23180--More--|E(Where do you want to jump?|E-(For instructions type a ?)|E|E@6|E< |E\ .@   - |EM .@   -|EG .- @ |E`Q 123(123)  Pw:287(504) AC:-13 Exp:30 T:23180 4 5 4@ 4..N 54545|E@The priest of Moloch wields a mace!--More--|EX The mace welds itself to the priest of Moloch's hand! 123(123)  Pw:291(504) AC:-13 Exp:30 T:23181|E |Ee wUnknown command ' '. 123(123)  Pw:291(504) AC:-13 Exp:30 T:23181|Emc 123(123)  Pw:291(504) AC:-13 Exp:30 T:23181|E] 123(123)  Pw:291(504) AC:-13 Exp:30 T:23181|EDP  .- @ |EE 123(123)  Pw:291(504) AC:-13 Exp:30 T:23181The invisible golden naga casts a spell!|E"E--More--|EgYou feel that monsters are aware of your presence.5 A 4@.455 5N5A.4 $5  45|EŽ--More--|E=The priest of Moloch attacks a spot beside you.|E--More--|EV;The priest of Moloch kicks wildly and misses!|EV--More--|EN=The priest of Moloch casts a spell at thin air!|E |E6 wUnknown command ' '. 123(123)  Pw:291(504) AC:-13 Exp:30 T:23181|E4 c 123(123)  Pw:291(504) AC:-13 Exp:30 T:23181|E3What do you want to zap? [cfgjlnq-sYZ or ?*] |E Wands c - a wand of cancellation (0:6) s - a wand of death (0:1) f - a wand of death (0:2) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:5) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:4) n - a wand of teleportation (0:4)(end) |E#+4---------5-...--.A..--4@.@.@+4555..N.--5-%A..--4|E#In what direction? |E*|E|EThe door is razed! 123(123)  Pw:294(504) AC:-13 Exp:30 T:23182|-.@|.@AA..+-A.|||EA Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E 'Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:623080 Astral Plane $:0 HP: Astral Plane $:0 HP:123(123) Astral Plane $:0 HP:123(123) Pw:294(504) AC:-13 Exp:30 T:231824---------5-...--|.A..---.@|@.@.@.@AA..+5..N.---A.|-%A..--4|----$----5-------|45|=|---------|-----|Es 3What do you want to zap? [cfgjlnq-sYZ or ?*] |E Wands c - a wand of cancellation (0:6) s - a wand of death (0:1) f - a wand of death (0:2) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:4) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:4) n - a wand of teleportation (0:4)(end) |E' +4---------5-...--|.A..---.@|@.@.@.@AA..+5..N.---A.|-%A..--4||Ei In what direction? |E[  123(123)  Pw:294(504) AC:-13 Exp:30 T:23182AN..A A...5 5|E[ mThe Angel of Thoth zaps you with a magic missile!---|E\ ---More--|E=The magic missile whizzes by you!-|Eׇ--More--|E@The magic missile hits the invisible golden naga! 4 .5A.@.AN@...455    4|E,--More--|Ef3 8The Angel of Moloch zaps you with a magic missile!|E3 -|E3 --More--|E HThe magic missile hits the priest of Moloch!-|E --More--|E; MThe magic missile hits the invisible golden naga!-|Ea --More--|EL)The magic missile hits you!|E1MABut it reflects from your armor!--More--|EqjThe magic missile hits the invisible golden naga!@N@|Er--More--|EQ The Angel of Moloch casts aspersions on your ancestry.@..@|E |EV wUnknown command ' '. 123(123)  Pw:294(504) AC:-13 Exp:30 T:23182|EUc 123(123)  Pw:294(504) AC:-13 Exp:30 T:23182|E: Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|ED2+4----------...--5|A@..---@.|.A.N@...A..+@A..---4..|5-%...--5|----$-----------|45|=|---------|-----|EEidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:623080 Astral Plane $:0 HP: Astral Plane $:0 HP:123(123) Astral Plane $:0 HP:123(123) Pw:294(504) AC:-13 Exp:30 T:23182You feel the amulet draining your energy away.|Ed 123(123)  Pw:287(504) AC:-13 Exp:30 T:23182--More--|E (Where do you want to jump?|E -(For instructions type a ?)|E5B|E5|E#3|E - . -. .@ -@ .-|Eg ---..-.@-A. ..@ .-A.-....---|E x-.-4 .@ -.-|E 455|Ed  123(123)  Pw:290(504) AC:-13 Exp:30 T:23183A mysterious force prevents you from teleporting!ª|E(ª|E(wUnknown command ' '. 123(123)  Pw:290(504) AC:-13 Exp:30 T:23183ª|Eq ª|E 3What do you want to zap? [cfgjlnq-sYZ or ?*] ª|Eb  Wands c - a wand of cancellation (0:6) s - a wand of death (0:1) f - a wand of death (0:2) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:4) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:3) n - a wand of teleportation (0:4)(end) Ī|EzA+----...4----------.@------A..|A4---..@.|5AN...@A..+5@---.@..|5-%----A..|Ī|EL{In what direction? Ū|EB .Ū|E 123(123)  Pw:290(504) AC:-13 Exp:30 T:23183The invisible golden naga casts a spell!--More--Ū|Ea You feel that monsters are aware of your presence.5 . 3 5Ū|Ea --More--Ū|E SThe Angel of Ptah wields a long sword! AŪ|E --More--ƪ|E\5The Angel of Anhur wields a long sword!ƪ|E;You hear a chugging sound.--More--ƪ|E 2The priestess of Ptah wields a mace!ƪ|ES--More--ƪ|E\The mace welds itself to the priestess of Ptah's hand! 123(123)  Pw:291(504) AC:-13 Exp:30 T:23184@ 4.@ .@ A5  3 4ƪ|Ecƪ|EQdwUnknown command ' '. 123(123)  Pw:291(504) AC:-13 Exp:30 T:23184ƪ|E c 123(123)  Pw:291(504) AC:-13 Exp:30 T:23184Ǫ|E Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)Ǫ|EJ+----.@.4----------..------A@.|---....|5A@A....@...+53---.@..|-4----A..|----$-----..--------|...45|=|-------------|-----Ǫ|El|Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:623080 Astral Plane $:0 HP: Astral Plane $:0 HP:123(123) Astral Plane $:0 HP:123(123) Pw:291(504) AC:-13 Exp:30 T:23184You feel the amulet draining your energy away. 123(123)  Pw:279(504) AC:-13 Exp:30 T:23184--More--Ǫ|E~ (Where do you want to jump?Ǫ|EO~ -(For instructions type a ?)Ȫ|E,SȪ|EȪ|EȪ|E A- .@-Ȫ|E% K-| .@|-Ȫ|E@ .@Ȫ|E  123(123)  Pw:279(504) AC:-13 Exp:30 T:2318435 %Ȫ|E You hear some noises in the distance..A5  @.A. 4 5Ȫ|E --More--ͪ|E)2The priestess of Ptah wields a mace!ͪ|E)--More--ͪ|ExxThe mace welds itself to the priestess of Ptah's hand! 123(123)  Pw:283(504) AC:-13 Exp:30 T:23185. 4@Hx3x  '5 5RDͪ|E& ͪ|E wUnknown command ' '. 123(123)  Pw:283(504) AC:-13 Exp:30 T:23185ͪ|Egc 123(123)  Pw:283(504) AC:-13 Exp:30 T:23185Ϊ|ER3What do you want to zap? [cfgjlnq-sYZ or ?*] Ϊ|E Wands c - a wand of cancellation (0:6) s - a wand of death (0:1) f - a wand of death (0:2) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:4) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:2) n - a wand of teleportation (0:4)(end) Ϫ|EW6-----|...4-----------@.------H@x|3---..Ax|53...'@@+555---..AR|-%----..D|Ϫ|EPW3What do you want to zap? [cfgjlnq-sYZ or ?*] Ϫ|E<Ϫ|EnNever mind. 123(123)  Pw:283(504) AC:-13 Exp:30 T:23185Ϫ|E Ϫ|E 3What do you want to zap? [cfgjlnq-sYZ or ?*] Ϫ|E_' Wands c - a wand of cancellation (0:6) s - a wand of death (0:1) f - a wand of death (0:2) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:4) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:2) n - a wand of teleportation (0:4)(end) Ӫ|Elw>+-----|...4-----------@.------H@x|3---..Ax|53...'@@+555---..AR|-%----..D|Ӫ|EwIn what direction? Ӫ|E *Ӫ|EO Ӫ|E The door is razed! 123(123)  Pw:283(504) AC:-13 Exp:30 T:23185-----....|q.....|3 .A..@D..|......|....|-----Ӫ|E1 MThe black dragon breathes a disintegration blast!-Ӫ|EL --More--Ԫ|EQThe high priest of Thoth's small shield is disintegrated!-Ԫ|E--Ԫ|E4--More--ժ|E4The Angel of Moloch's large shield is disintegrated!5.A..@ 5ժ|E4--More--ժ|E 6The Angel of Ptah swings her long sword.ժ|E The Angel of Ptah hits! 122(123)  Pw:283(504) AC:-13 Exp:30 T:23185ժ|E8 --More--֪|E6The Angel of Ptah swings her long sword.֪|EHThe Angel of Ptah hits! 121(123)  Pw:283(504) AC:-13 Exp:30 T:23185--More--֪|EZ The Angel of Ptah hits! 120(123)  Pw:283(504) AC:-13 Exp:30 T:23185֪|E HThe Angel of Ptah casts a spell at you!--More--ת|E"2You are hit by a shower of missiles!ת|E9The missiles bounce off!--More--ת|E7The Angel of Anhur swings his long sword.ת|EThe Angel of Anhur hits! 117(123)  Pw:283(504) AC:-13 Exp:30 T:23185ת|E--More--ت|E7The Angel of Anhur swings his long sword.ت|EyThe Angel of Anhur hits! 108(123)  Pw:283(504) AC:-13 Exp:30 T:23185--More--ت|EE The Angel of Anhur hits! 107(123)  Pw:283(504) AC:-13 Exp:30 T:23185ت|EBE IThe Angel of Anhur casts a spell at you!--More--٪|EL2You are hit by a shower of missiles!٪|E=The missiles bounce off! 4٪|E--More--٪|E, 4The priestess of Ptah swings her mace.٪|E| The priestess of Ptah hits! 88(123)  Pw:283(504) AC:-13 Exp:30 T:23185٪|E --More--ڪ|EJ2The priestess of Ptah kicks! 87(123)  Pw:283(504) AC:-13 Exp:30 T:23185ڪ|Ey2--More--ڪ|E{ 2The air crackles around the priestess of Ptah. 87(123)  Pw:285(504) AC:-13 Exp:30 T:23186@4 .@.@A._ 5۪|E۪|EUnknown command ' '. 87(123)  Pw:285(504) AC:-13 Exp:30 T:23186ݪ|E$ ݪ|EW 3What do you want to zap? [cfgjlnq-sYZ or ?*] ݪ|E Wands c - a wand of cancellation (0:6) s - a wand of death (0:1) f - a wand of death (0:2) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:2) n - a wand of teleportation (0:4)(end) |EfY_+-----|@..4-----------.@-----------H.x|3....|---..Ax|5...@..|3...'@@A..._D..|---..AR|......|-%5----..D|....||EYIn what direction? |E)=V.x. Hg..|E= 87(123)  Pw:285(504) AC:-13 Exp:30 T:23186The xan just misses!|E>The disenchanter hits! 86(123)  Pw:285(504) AC:-13 Exp:30 T:231863  q 4|E<>--More--|ET 4The priestess of Ptah swings her mace.|ET The priestess of Ptah hits! 60(123)  Pw:285(504) AC:-13 Exp:30 T:23186--More--|E'The priestess of Ptah kicks! 59(123)  Pw:285(504) AC:-13 Exp:30 T:23186|E\--More--|EqThe priestess of Ptah points at you, then curses..@4 @..@|E|ELUnknown command ' '. 59(123)  Pw:285(504) AC:-13 Exp:30 T:23186|Ev|EwAWhat do you want to write with? [- cfgjlnq-sxBEGPYZ or ?*] |E*|E*gYou engrave in the floor with the blessed rustproof +6 Magicbane (weapon in hand).--More--|E(  |EU 5What do you want to engrave in the floor here? |EWE|EYl|E`eb|E<e|E*hr|Ee|Eo t|E h|EHo 62(123)  Pw:288(504) AC:-13 Exp:30 T:23187|E8 Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E+-----|.@.4-----------@.-----------.x.|....|3---H.Ax|g.....|...'@@q..._@..|---..AR|......|-%5----..D|....|----$------..-------------||...45|=|--------------|-----|E #Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:623080 Astral Plane $:0 HP: Astral Plane $:0 HP:62(123) Astral Plane $:0 HP:62(123) Pw:288(504) AC:-13 Exp:30 T:23187You feel the amulet draining your energy away.--More--|E=|Ez 62(123)  Pw:254(504) AC:-13 Exp:30 T:23187In what direction? |E|EL 91(123)  Pw:254(504) AC:-13 Exp:30 T:23187You feel much better. 91(123)  Pw:254(504) AC:-13 Exp:30 T:23187.3.x.H.'D.|E RThe xan turns to flee!x.--More--|E {The disenchanter turns to flee! A3.R|EM SThe mastodon turns to flee! 5--More--|ES6The Angel of Ptah swings her long sword.|EThe Angel of Ptah hits! 90(123)  Pw:254(504) AC:-13 Exp:30 T:23187--More--|E} 6The Angel of Ptah swings her long sword.|E'~ The Angel of Ptah hits! 89(123)  Pw:254(504) AC:-13 Exp:30 T:23187--More--|EYThe Angel of Ptah hits! 88(123)  Pw:254(504) AC:-13 Exp:30 T:23187|EHThe Angel of Ptah casts a spell at you!--More--|E2You are hit by a shower of missiles!|E9The missiles bounce off!--More--|Eu] 7The Angel of Anhur swings his long sword.|E] The Angel of Anhur hits! 87(123)  Pw:254(504) AC:-13 Exp:30 T:23187--More--|EGg7The Angel of Anhur swings his long sword.|EgThe Angel of Anhur hits! 86(123)  Pw:254(504) AC:-13 Exp:30 T:23187--More--|E/ The Angel of Anhur hits! 85(123)  Pw:254(504) AC:-13 Exp:30 T:23187|En IThe Angel of Anhur casts a spell at you!--More--|E72You are hit by a shower of missiles!|E-89The missiles bounce off!--More--|E ["Verily, thy corpse could not smell worse!" 4--More--|EJ4The priestess of Ptah swings her mace.|EThe priestess of Ptah hits! 68(123)  Pw:254(504) AC:-13 Exp:30 T:23187--More--|EThe priestess of Ptah kicks! 67(123)  Pw:254(504) AC:-13 Exp:30 T:23187|E̦--More--|E}9The priestess of Ptah casts a spell at you!|E--More--|E 0You feel as if you need some help.|E2 --More--|EXYou feel a malignant aura surround the magic-absorbing blade..44 .@..xx4 |E |Ee Unknown command ' '. 67(123)  Pw:254(504) AC:-13 Exp:30 T:23187|EK Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E˘+-----|..44-----------..-----------.@.|3....|---..Ax|......|A3.Hx.@@q..._@..|4---.'A.|......|-%----.DR|....|----$------..-------------||...45|=|--------------|-----|EEidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:623080 Astral Plane $:0 HP: Astral Plane $:0 HP:67(123) Astral Plane $:0 HP:67(123) Pw:254(504) AC:-13 Exp:30 T:23187You feel the amulet draining your energy away. 67(123)  Pw:237(504) AC:-13 Exp:30 T:23188xq|EXS|ESYou displaced your mastodon.---g...q@....---|ES9The high priest intones:--More--|EG 2"Pilgrim, you enter a sacred place!"|E p 67(123)  Pw:237(504) AC:-13 Exp:30 T:23188--More--|EBW4The mastodon butts the Angel of Anhur.|EoW--More--|EThe mastodon butts the Angel of Anhur.3..g3 H..Ax.DA..4 5|E--More--|Ew 7The Angel of Anhur zaps you with a magic missile!|E -|E --More--|EIThe magic missile hits the priestess of Ptah!-|E--More--|E5@The magic missile hits the mastodon!-|E_=The magic missile hits you!--More--|EC &But it reflects from your armor!|EC |EF UThe magic missile hits the mastodon! 67(123)  Pw:238(504) AC:-13 Exp:30 T:231894 4@.@.q@. 4@4 |EA Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E+-----|..4-----------.4---------3-----@..|.......|---...x|g..@...|A3H..A.q@..._...|4---x'@D|.......|-%----A..|.......|----$------.4----------------||...45|=|--------------|-----|ENEidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:623080 Astral Plane $:0 HP: Astral Plane $:0 HP:67(123) Astral Plane $:0 HP:67(123) Pw:238(504) AC:-13 Exp:30 T:23189You feel the amulet draining your energy away. 67(123)  Pw:230(504) AC:-13 Exp:30 T:23189--More--|E (Where do you want to jump?|E[ -(For instructions type a ?)|E|E|EE |E; |E]...@5.|E,$.@.|EH-.@5|Ec).@2|E 67(123)  Pw:230(504) AC:-13 Exp:30 T:23189  68(123)  Pw:231(504) AC:-13 Exp:30 T:23190.4 43.@ ..xA.x. ...g55.44  5|E There is an altar to Thoth (neutral) here. 68(123)  Pw:231(504) AC:-13 Exp:30 T:23190|EF@ _@|Eg 68(123)  Pw:231(504) AC:-13 Exp:30 T:23190The mastodon butts the priestess of Anhur.--More--|E7 GThe mastodon butts the priestess of Anhur.--More--|EL4The priestess of Anhur wields a mace!.4 3@.4....@25.xg54.4  |Ef|EUnknown command '^J'. 68(123)  Pw:231(504) AC:-13 Exp:30 T:23190|Ewo 68(123)  Pw:231(504) AC:-13 Exp:30 T:23190|Ei 68(123)  Pw:231(504) AC:-13 Exp:30 T:23190|EZ 68(123)  Pw:235(504) AC:-13 Exp:30 T:23191AA@@.|EQ +@.x|E  68(123)  Pw:235(504) AC:-13 Exp:30 T:23191The mastodon butts the xan.|Eʥ <The mastodon butts the xan.--More--|EThe xan stings the mastodon. 68(123)  Pw:237(504) AC:-13 Exp:30 T:23192 A.@.3A.@A.@.'.gx.2...545 .4 |Eda|EaUnknown command '^J'. 68(123)  Pw:237(504) AC:-13 Exp:30 T:23192|Emo 68(123)  Pw:237(504) AC:-13 Exp:30 T:23192|E i 68(123)  Pw:237(504) AC:-13 Exp:30 T:23192 |Ewi 68(123)  Pw:237(504) AC:-13 Exp:30 T:23192 |E!I4.@5 |E`" 68(123)  Pw:237(504) AC:-13 Exp:30 T:23192You hear some noises. |E"You hear some noises in the distance.H2x...5 |E"--More-- |E)The winged gargoyle misses. |EAThe winged gargoyle just misses!--More-- |E)v !The winged gargoyle bites! 67(123)  Pw:237(504) AC:-13 Exp:30 T:23192..43 @@_@.4 4 |E!  |EA" Unknown command '^J'. 67(123)  Pw:237(504) AC:-13 Exp:30 T:23192 |Eo 67(123)  Pw:237(504) AC:-13 Exp:30 T:23192 |Ezxi 67(123)  Pw:237(504) AC:-13 Exp:30 T:23192 |EGi 71(123)  Pw:238(504) AC:-13 Exp:30 T:23193 |E  71(123)  Pw:238(504) AC:-13 Exp:30 T:23193The mastodon butts the priestess of Ptah. |E4 --More-- |Ef7The mastodon butts the priestess of Ptah. |E--More-- |EZDThe priestess of Ptah swings her mace at the mastodon. |E2[--More-- |Ey 6The priestess of Ptah hits the mastodon. |E --More-- |EP The priestess of Ptah hits the mastodon. x.5.2.5 |E The winged gargoyle hits! 63(123)  Pw:238(504) AC:-13 Exp:30 T:23193--More-- |EThe winged gargoyle hits! 53(123)  Pw:238(504) AC:-13 Exp:30 T:23193 |E7The winged gargoyle bites! 52(123)  Pw:238(504) AC:-13 Exp:30 T:23193.4. 3A.@A. .54 4 |E--More-- |EV AThe renegade priestess of Anhur hurls a potion called acid! |E --More-- |E*MThe potion called acid misses the Angel of Anhur.! |E*--More--|E2CThe vial crashes on your head and breaks into shards.|E3 51(123)  Pw:238(504) AC:-13 Exp:30 T:23193This burns!A!|E64 45(123)  Pw:238(504) AC:-13 Exp:30 T:23193@ A@x_2.|E_4--More--|E The winged gargoyle hits! 44(123)  Pw:238(504) AC:-13 Exp:30 T:23193|E* The winged gargoyle hits! 38(123)  Pw:238(504) AC:-13 Exp:30 T:23193|EI --More--|E)The winged gargoyle misses.|E*|El+Unknown command '^J'. 38(123)  Pw:238(504) AC:-13 Exp:30 T:23193|E k 38(123)  Pw:238(504) AC:-13 Exp:30 T:23193|E |E FYou displaced your xan.x@|E  38(123)  Pw:238(504) AC:-13 Exp:30 T:23194Your candelabrum's candles are getting short. 38(123)  Pw:239(504) AC:-13 Exp:30 T:23194|E|E^Unknown command '^J'. 38(123)  Pw:239(504) AC:-13 Exp:30 T:23194|E=aI@  .@|Ea 38(123)  Pw:239(504) AC:-13 Exp:30 T:23194The mastodon butts the priestess of Ptah.--More--|E 7The mastodon butts the priestess of Ptah.|E --More--|E The priestess of Ptah is killed! 38(123)  Pw:243(504) AC:-13 Exp:30 T:23195$Ax. .x...@3.@.g .4 45|Eo|EUnknown command ' '. 38(123)  Pw:243(504) AC:-13 Exp:30 T:23195|Ek 38(123)  Pw:243(504) AC:-13 Exp:30 T:23195|Eye 38(123)  Pw:243(504) AC:-13 Exp:30 T:23195|Ez +What do you want to drink? [i or ?*] |EI 5i - 2 uncursed potions of full healing.--More--|E9|E&:)You feel completely healed.|Ef: 127(127)  Pw:243(504) AC:-13 Exp:30 T:23195The mastodon butts the xan.|E:--More--|EqThe xan is killed!.x'. 5|EjThe winged gargoyle hits! 117(127)  Pw:243(504) AC:-13 Exp:30 T:23195--More--|Ew The winged gargoyle hits! 109(127)  Pw:243(504) AC:-13 Exp:30 T:23195|Ex The winged gargoyle just misses!A.3A .45 |Ey --More--|E 7The Angel of Anhur zaps you with a magic missile!|E C\\\|E --More--|E)The magic missile hits you!|E@But it reflects from your armor!\|E֥--More--|EnThe magic missile hits the Angel of Anhur.Ax@..@5@._..@4 |E[|E<\Unknown command ' '. 109(127)  Pw:243(504) AC:-13 Exp:30 T:23195|E8 l 109(127)  Pw:243(504) AC:-13 Exp:30 T:23195|E 110(127)  Pw:247(504) AC:-13 Exp:30 T:23196$&AA@.|E5 , &@.|Eh5  110(127)  Pw:247(504) AC:-13 Exp:30 T:23196The mastodon butts the iron golem.|E5 CThe mastodon butts the iron golem.--More--|E;/The iron golem hits the mastodon.|ECThe mastodon is killed!..xAA H.A%.34.g4.54  5|E҅--More--|E8The Angel of Moloch zaps you with a magic missile!|E<<----More--|E)} BThe magic missile hits the iron golem!-|ES} --|Et~  110(127)  Pw:249(504) AC:-13 Exp:30 T:23197@..'%..|E |Ec Unknown command '^J'. 110(127)  Pw:249(504) AC:-13 Exp:30 T:23197|El 110(127)  Pw:249(504) AC:-13 Exp:30 T:23197|ES  Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E +-----|...-----------..--------------...|....x..|---.A$.|.A.@...|&AH..A.'%..@._...|3---...4|.......|-%----...|...g...|----$------.4----------------||...545|=|--------------|-----|E Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:623080 Astral Plane $:0 HP: Astral Plane $:0 HP:110(127) Astral Plane $:0 HP:110(127) Pw:249(504) AC:-13 Exp:30 T:23197You feel the amulet draining your energy away. 110(127)  Pw:243(504) AC:-13 Exp:30 T:23197--More--|E|(Where do you want to jump?|E}-(For instructions type a ?)|E5 |Eu|Ej|E|Ei |E +You cannot see where to land!|E Nothing happens. 110(127)  Pw:243(504) AC:-13 Exp:30 T:23197.A.x3 AH.' g4..55  |E= --More--|E7The Angel of Anhur swings his long sword.|EThe Angel of Anhur hits! 109(127)  Pw:243(504) AC:-13 Exp:30 T:23197--More--|E 7The Angel of Anhur swings his long sword.|E The Angel of Anhur hits! 108(127)  Pw:243(504) AC:-13 Exp:30 T:23197--More--|E& The Angel of Anhur hits! 106(127)  Pw:243(504) AC:-13 Exp:30 T:23197|EX IThe Angel of Anhur casts a spell at you!--More-- |E2You are hit by a shower of missiles! |E6 tThe missiles bounce off!@.A@.4  |EZ --More-- |E8The Angel of Moloch zaps you with a magic missile! |E?- |E\--More-- |E~SThe magic missile hits the renegade priestess of Anhur!- |EJ~--More-- |E1{BThe magic missile hits the iron golem!- |EW{J--The magic missile hits you! |Ev{--More-- |EH But it reflects from your armor!. H@'..@x |Et <The winged gargoyle misses.--More-- |E )The winged gargoyle misses. |E The winged gargoyle bites! 105(127)  Pw:243(504) AC:-13 Exp:30 T:23197!|E_!|Ep`Unknown command ' '. 105(127)  Pw:243(504) AC:-13 Exp:30 T:23197!|E5 Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)!|E0 +-----|...-----------..--------------...|.......|---A@$.|.A.@...|3AH..A@'..@.x...|---....|..g....|-%----..4|.......|----$------..---------5-------||..54|=|--------------|-----!|E1 !Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:623080 Astral Plane $:0 HP: Astral Plane $:0 HP:105(127) Astral Plane $:0 HP:105(127) Pw:243(504) AC:-13 Exp:30 T:23197You feel the amulet draining your energy away.!|EG1 m 105(127)  Pw:229(504) AC:-13 Exp:30 T:23197--More--!|Ee (Where do you want to jump?!|E -(For instructions type a ?)"|El"|ES#|ET@.#|E6@.@R#|EG| 105(127)  Pw:231(504) AC:-13 Exp:30 T:231985#|E Unknown command ' '. 105(127)  Pw:231(504) AC:-13 Exp:30 T:23198#|E)^ Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)$|Eq+-----|...-----------..--------------...|.......|5---A@$.|.A.@...|3AH..A@'@...x...|---....|..g....|-%----.@R|.......|----$------..---------5-------||..54|=|--------------|-----$|E!Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:623080 Astral Plane $:0 HP: Astral Plane $:0 HP:105(127) Astral Plane $:0 HP:105(127) Pw:231(504) AC:-13 Exp:30 T:23198You feel the amulet draining your energy away.$|Em 105(127)  Pw:222(504) AC:-13 Exp:30 T:23198--More--$|E&(Where do you want to jump?$|E>&-(For instructions type a ?)$|Ej $|E ~ )|E O@5.._)|EC >@. 3)|E  105(127)  Pw:222(504) AC:-13 Exp:30 T:23198  114(127)  Pw:224(504) AC:-13 Exp:30 T:231995@ . 5..3@R.@..  4*|E  Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)*|EN q+-----|...-----------..----------5----@@.|.......|---A.$.|.5.....|5...A.'..3._...|---.@.R|.......|-%----@..|.......|----$------..----------------||..54|=|--------------|-----*|EXO Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:623080 Astral Plane $:0 HP: Astral Plane $:0 HP:114(127) Astral Plane $:0 HP:114(127) Pw:224(504) AC:-13 Exp:30 T:23199You feel the amulet draining your energy away. 114(127)  Pw:217(504) AC:-13 Exp:30 T:23199--More--*|E9(Where do you want to jump?*|E9-(For instructions type a ?)+|Eժ+|Et+|Ea u.@HgxD+|E T.A@@+|Ek  114(127)  Pw:217(504) AC:-13 Exp:30 T:23199 55.'..AHA%...35R$D5 .4 +|E AThe priestess of Ptah casts a spell!--More--,|Ea3 sThe priestess of Ptah looks better..@.@,|E3 --More---|E/A>The renegade priestess of Anhur swings her mace.-|EdA--More---|EoThe renegade priestess of Anhur hits! 84(127)  Pw:217(504) AC:-13 Exp:30 T:23199-|E--More---|EThe renegade priestess of Anhur kicks! 83(127)  Pw:217(504) AC:-13 Exp:30 T:23199--More---|EA RThe renegade priestess of Anhur casts a spell at you!--More---|E Severe wounds appear on your body! 72(127)  Pw:217(504) AC:-13 Exp:30 T:23199-|E --More--.|E8The Angel of Moloch swings her long sword..|EThe Angel of Moloch hits! 65(127)  Pw:217(504) AC:-13 Exp:30 T:23199--More--.|E8The Angel of Moloch swings her long sword..|EThe Angel of Moloch hits! 55(127)  Pw:217(504) AC:-13 Exp:30 T:23199--More--.|E The Angel of Moloch hits! 54(127)  Pw:217(504) AC:-13 Exp:30 T:23199.|EJ JThe Angel of Moloch casts a spell at you!--More--.|E^M 2You are hit by a shower of missiles!.|EN The missiles bounce off! 54(127)  Pw:219(504) AC:-13 Exp:30 T:23200_@/|E7/|E8Unknown command ' '. 54(127)  Pw:219(504) AC:-13 Exp:30 T:23200/|Eo 54(127)  Pw:219(504) AC:-13 Exp:30 T:23200/|E Pick an object.0|E0|E30|E 0|E1 H a giant humanoid (minotaur) [seen: normal vision, infravision] 54(127)  Pw:219(504) AC:-13 Exp:30 T:232001|E1|E3What do you want to zap? [cfgjlnq-sYZ or ?*] 1|Eޟ Wands c - a wand of cancellation (0:6) s - a wand of death (0:1) f - a wand of death (0:2) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:1) n - a wand of teleportation (0:4)(end) 2|Ew +-----|...-----------..--------------...|.5.....|5---@.'.|.......|.AHA@A.%...._@..|---.@..|..3....|-%5----..R|.......|2|ExIn what direction? 3|Eo 54(127)  Pw:219(504) AC:-13 Exp:30 T:23200 5. .5&.A@5R3. D...@@ 3|EKMThe renegade priestess of Anhur swings her mace.--More--4|E0 :The renegade priestess of Anhur just misses!4|E0 --More--5|E6~The renegade priestess of Anhur kicks! 53(127)  Pw:219(504) AC:-13 Exp:30 T:232005|E~--More--5|EcIThe renegade priestess of Anhur points at you, then curses.5|E--More--5|E+ 8The Angel of Moloch swings her long sword.5|E The Angel of Moloch hits! 49(127)  Pw:219(504) AC:-13 Exp:30 T:23200--More--6|EThe Angel of Moloch swings her long sword.The Angel of Moloch hits! 48(127)  Pw:219(504) AC:-13 Exp:30 T:23200--More--6|EmThe Angel of Moloch hits! 47(127)  Pw:219(504) AC:-13 Exp:30 T:23200The Angel of Moloch casts a spell at you!--More--6|E%7 2You are hit by a shower of missiles!6|E 8 EThe missiles bounce off!.47|E7|E4Unknown command ' '. 47(127)  Pw:219(504) AC:-13 Exp:30 T:232007|Edb 7|Eb +What do you want to drink? [i or ?*] 7|ER@5i - an uncursed potion of full healing.--More--8|E 8|El ~You feel completely healed. 131(131)  Pw:222(504) AC:-13 Exp:30 T:232018|E @8|E@wUnknown command ' '. 131(131)  Pw:222(504) AC:-13 Exp:30 T:232019|Ec 131(131)  Pw:222(504) AC:-13 Exp:30 T:23201<|E3What do you want to zap? [cfgjlnq-sYZ or ?*] <|E*| Wands c - a wand of cancellation (0:6) s - a wand of death (0:1) f - a wand of death (0:2) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:0) n - a wand of teleportation (0:4)(end) =|E +-----|...5-----------..--------------...|.......|---..'.|..5....|&.A@@A.%...._...|5---.@.R|.3.....|-%----.D.|.......|=|E In what direction? >|EE%2A.&..>|EF&~ 131(131)  Pw:222(504) AC:-13 Exp:30 T:23201The iron golem picks up a cursed mace.5 .A5.Rg 5..D.5 .@.4>|Eq&--More-->|EZ >The renegade priestess of Anhur swings her mace.>|E --More--?|EThe renegade priestess of Anhur hits! 102(131)  Pw:222(504) AC:-13 Exp:30 T:23201?|E(--More--?|EEThe renegade priestess of Anhur kicks! 101(131)  Pw:222(504) AC:-13 Exp:30 T:23201?|EE--More--?|EFThe air crackles around the renegade priestess of Anhur.?|Er--More--?|E 8The Angel of Moloch swings her long sword.?|E The Angel of Moloch hits! 100(131)  Pw:222(504) AC:-13 Exp:30 T:23201?|E --More--?|E 8The Angel of Moloch swings her long sword.?|E The Angel of Moloch hits! 99(131)  Pw:222(504) AC:-13 Exp:30 T:23201?|E --More--@|EThe Angel of Moloch hits! 97(131)  Pw:222(504) AC:-13 Exp:30 T:23201@|E--More--@|E~The air crackles around the Angel of Moloch.5 .3 4@|Ep@|EUnknown command ' '. 97(131)  Pw:222(504) AC:-13 Exp:30 T:23201@|Ek 97(131)  Pw:222(504) AC:-13 Exp:30 T:23201@|E 3What do you want to zap? [cfgjlnq-sYZ or ?*] @|Et Wands c - a wand of cancellation (0:6) s - a wand of death (0:1) f - a wand of death (0:2) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:0) n - a wand of teleportation (0:3)(end) B|E +-----|...5-----------..--------------A..|..5....|---..'.|.......|.&..@A.%R..._...|5---.@..|.3.....|-%----D..|.......|B|EȽ In what direction? B|E -B|E V--The death ray misses Pestilence.-B|Et s 109(131)  Pw:226(504) AC:-13 Exp:30 T:23202.&..C|EC|E)3What do you want to zap? [cfgjlnq-sYZ or ?*] D|EwX Wands c - a wand of cancellation (0:6) s - a wand of death (0:0) f - a wand of death (0:2) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:0) n - a wand of teleportation (0:3)(end) E|E+-----|...5-----------..--------------A..|..5....|---..'.|.......|.&..@A.%R..._...|5---.@..|.3.....|-%----D..|.......|E|EIn what direction? E|E-E|E--E|Eq6You kill Pestilence!-%E|E{3110  109(131)  Pw:226(504) AC:-13 Exp:30 T:23202  109(131)  Pw:226(504) AC:-13 Exp:30 T:232025 ..AR5....xg.5$@. 4E|EQThe renegade priestess of Anhur swings her mace.--More--E|E The renegade priestess of Anhur hits! 91(131)  Pw:226(504) AC:-13 Exp:30 T:23202E|E --More--F|EThe renegade priestess of Anhur kicks! 90(131)  Pw:226(504) AC:-13 Exp:30 T:23202F|E--More--F|EIThe renegade priestess of Anhur points at you, then curses.F|E--More--F|E%Y8The Angel of Moloch swings her long sword.F|EYThe Angel of Moloch hits! 88(131)  Pw:226(504) AC:-13 Exp:30 T:23202F|EY--More--F|E 8The Angel of Moloch swings her long sword.F|EI The Angel of Moloch hits! 87(131)  Pw:226(504) AC:-13 Exp:30 T:23202F|Ek --More--F|E The Angel of Moloch hits! 86(131)  Pw:226(504) AC:-13 Exp:30 T:23202F|E JThe Angel of Moloch casts a spell at you!--More--F|E2You are hit by a shower of missiles!F|EޏThe missiles bounce off! 86(131)  Pw:230(504) AC:-13 Exp:30 T:23203@4 G|E*G|E<+Unknown command ' '. 86(131)  Pw:230(504) AC:-13 Exp:30 T:23203G|Exo 86(131)  Pw:230(504) AC:-13 Exp:30 T:23203G|Ei 86(131)  Pw:230(504) AC:-13 Exp:30 T:23203G|E  Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)G|En +-----|...5-----------..--------------...|.......|---A.'R|.5.....|.%..@A.%.xg@_...|5---.@..|.......|-%5----D..|.......|----4------.@----------------||...4|=|--------------|-----G|E Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:86(131) Astral Plane $:0 HP:86(131) Pw:230(504) AC:-13 Exp:30 T:23203You feel the amulet draining your energy away. 86(131)  Pw:224(504) AC:-13 Exp:30 T:23203--More--H|EE(Where do you want to jump?H|EE-(For instructions type a ?)H|EqH|E*H|E H|EI|Ey ).@.I|E r....@..A5.I|E!......@..%4D..@..5.@%..I|Ey" 86(131)  Pw:224(504) AC:-13 Exp:30 T:23203 ..ARxg.D5.. I|E0$<The Angel of Ptah wields a long sword! 86(131)  Pw:225(504) AC:-13 Exp:30 T:2320455@.x...@$4I|Eٛ Unknown command ' '. 86(131)  Pw:225(504) AC:-13 Exp:30 T:23204J|E o 86(131)  Pw:225(504) AC:-13 Exp:30 T:23204J|Eb Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)J|E+-----|...-----------..----------....----...|.......|.....---5.5.|5......|....@%.A@.Rx.g.._...|..DA%---..5.|.......|-@....----...|.......|----$------..----------------||...4|=|--------------|-----J|EM#Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:86(131) Astral Plane $:0 HP:86(131) Pw:225(504) AC:-13 Exp:30 T:23204You feel the amulet draining your energy away.J|Etp 86(131)  Pw:216(504) AC:-13 Exp:30 T:23204--More--J|E(Where do you want to jump?J|Eh-(For instructions type a ?)J|E3 J|E K|EnK|E;K|EN\Z...@...K|Ey\V...@....K|E\T...@...K|E\?..@..K|E] 44$.4 .D.%.g4. K|Eq^ 86(131)  Pw:216(504) AC:-13 Exp:30 T:23204The invisible priestess of Moloch casts a spell!aaaaaaaaaaK|E^--More--L|E]The invisible priestess of Moloch summons insects! 92(131)  Pw:218(504) AC:-13 Exp:30 T:23205 4@.L|E=L|E>Unknown command ' '. 92(131)  Pw:218(504) AC:-13 Exp:30 T:23205L|Ek 92(131)  Pw:218(504) AC:-13 Exp:30 T:23205L|Ee 92(131)  Pw:218(504) AC:-13 Exp:30 T:23205M|Eg Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)M|Ef+-----|...-----------..----------.aaaa..----...|.......|4..a.a....---54$.|.......|4..aa@a...%.A.D.%..g._...|.a.@..DA%---4...|.......|-.......----...|.......|----.------..----------------.||...|=|--------------|-----M|EfEidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:92(131) Astral Plane $:0 HP:92(131) Pw:218(504) AC:-13 Exp:30 T:23205You feel the amulet draining your energy away.M|Egl 92(131)  Pw:210(504) AC:-13 Exp:30 T:23205--More--M|E(Where do you want to jump?M|E-(For instructions type a ?)M|E M|E4N|EpN|EjN|E^I Q'..@.N|EI     $.5.@..N|EI 1 1      . @...N|EI  1  1  1 55  .@..N|EL  92(131)  Pw:210(504) AC:-13 Exp:30 T:23205  92(131)  Pw:213(504) AC:-13 Exp:30 T:23206  1 1..  .a.555 1. .414O|EUnknown command 'b'. 92(131)  Pw:213(504) AC:-13 Exp:30 T:23206P|EcP|EEWhat do you want to use or apply? [bcf-hj-lnq-sxBDIPUYZ or ?*] P|EC Do what?  a - Take something out of the bag of holding b - Put something into the bag of holding c - Both of the above(end) P|E+----- Take out what type of objects?  a - All types b - Comestibles c - Scrolls d - Potions e - Wands A - Auto-select every item B - Items known to be Blessed C - Items known to be Cursed U - Items known to be Uncursed(end) Q|ES +Q|Eҙ-----|...-----------..----------1----...|.......|11---..$.|.......|.a.5%..55.%...._...|1...5%---.4..|.......| Take out what?   Comestibles  a - 5 uncursed C-rations  b - 3 uncursed food rations  Scrolls  c - an uncursed scroll called remove curse  d - 7 blessed scrolls of blank paper  e - a cursed scroll of blank paper  f - an uncursed scroll of earth  g - an uncursed scroll of fire  Potions  h - 2 uncursed potions of extra healing  i - a cursed potion of extra healing  j - 2 uncursed potions of gain ability  k - 2 uncursed potions of gain energy  l - 9 uncursed potions of healing  m - 3 blessed potions of healing  n - 7 potions of holy water  o - 2 uncursed potions of speed  p - 2 potions of unholy water  q - 2 uncursed potions of water  Wands (1 of 2)V|Ed +X|E5f+Y|E"J+Z|E-\|E a - a blessed wand of enlightenment (0:10)  b - a wand of lightning (0:5)  c - a wand of striking (0:6) (2 of 2)^|E:h-----|...-----------..----------1----...|.......|11---..$.|.......|.a.5%..55.%...._...|1...5%---.4..|.......|-14.----...|.......|----.------..----------------.@.||...|......|--------------|-----^|E:Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:92(131) Astral Plane $:0 HP:92(131) Pw:213(504) AC:-13 Exp:30 T:23206o - 9 uncursed potions of healing.^|E<gv - 2 uncursed potions of speed. 92(131)  Pw:213(504) AC:-13 Exp:30 T:23206 1 a.a . aa%5.1 @54_|Ez_|E {Unknown command ' '. 92(131)  Pw:213(504) AC:-13 Exp:30 T:23206`|E`|Eڃ# `|EXydip`|Eip`|E8 `|E8 =What do you want to dip? [b-df-hj-xzBD-ILMOPUYZ or ?*] `|E8  Amulets  O - an uncursed amulet of life saving (being worn)  d - the Amulet of Yendor named NUMBER 50  H - the blessed Eye of the Aethiopica  Weapons  x - a +0 dwarvish mattock (alternate weapon; not wielded)  E - the blessed rustproof +6 Magicbane (weapon in hand)  Armor  F - an uncursed thoroughly burnt +0 cloak of magic resistance (being worn)  u - a blessed rustproof +4 helm of brilliance (being worn)  w - an uncursed thoroughly burnt rotted +0 pair of leather gloves (being worn)  M - an uncursed burnt +2 pair of water walking boots (being worn)  t - a blessed greased +3 silver dragon scale mail (being worn)  Comestibles  z - an uncursed K-ration  L - an uncursed lizard corpse  Scrolls  p - 2 blessed scrolls of charging named blessed  m - a scroll of teleportation  Potions  o - 9 uncursed potions of healing  v - 2 uncursed potions of speed  Rings (1 of 2)c|E*x +-----|...-----------..--------------...|.......|1---..$.|.......|a.a%..5..%...._...|a.a%5---....|.......|-1@5----4..|.......|----.------..----------------.@.||...|......|--------------|-----c|ExEidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:92(131) Astral Plane $:0 HP:92(131) Pw:213(504) AC:-13 Exp:30 T:23206What do you want to dip into? [ov or ?*] c|E׋c|E  The potions mix...c|EThe mixture looks fizzy. 92(131)  Pw:216(504) AC:-13 Exp:30 T:232071..aa.1 11c|Evc|EwEWhat do you want to use or apply? [bcf-hj-lnq-sxBDIPUYZ or ?*] d|E Do what?  a - Take something out of the bag of holding b - Put something into the bag of holding c - Both of the above(end) d|E+----- Take out what type of objects?  a - All types b - Comestibles c - Scrolls d - Potions e - Wands A - Auto-select every item B - Items known to be Blessed C - Items known to be Cursed U - Items known to be Uncursed(end) d|E+d|E -----|...-----------..--------------...|.......|11---..$.|.......|...%..5..%...._...|aa.1%5---....|.......| Take out what?  Potions a - 2 uncursed potions of extra healing b - a cursed potion of extra healing c - 2 uncursed potions of gain ability d - 2 uncursed potions of gain energy e - 3 blessed potions of healing f - 7 potions of holy water g - 2 potions of unholy water h - 2 uncursed potions of water(end) g|Eq #i|EA-----|...-----------..--------------...|.......|11---..$.|.......|...%..5..%...._...|aa.1%5---....|.......|i|EN - an uncursed potion of gain energy. 5aa..aa   ai|E'l 92(131)  Pw:216(504) AC:-13 Exp:30 T:23207--More--i|E5 You hear some noises in the distance.45%44.5 .i|Edi|EѕUnknown command ' '. 92(131)  Pw:216(504) AC:-13 Exp:30 T:23207j|Ek 92(131)  Pw:216(504) AC:-13 Exp:30 T:23207j|Ec# j|E dipj|Ea ipj|E j|EG <What do you want to dip? [b-df-hj-xzBD-IL-PUYZ or ?*] k|EX+ Amulets  O - an uncursed amulet of life saving (being worn)  d - the Amulet of Yendor named NUMBER 50  H - the blessed Eye of the Aethiopica  Weapons  x - a +0 dwarvish mattock (alternate weapon; not wielded)  E - the blessed rustproof +6 Magicbane (weapon in hand)  Armor  F - an uncursed thoroughly burnt +0 cloak of magic resistance (being worn)  u - a blessed rustproof +4 helm of brilliance (being worn)  w - an uncursed thoroughly burnt rotted +0 pair of leather gloves (being worn)  M - an uncursed burnt +2 pair of water walking boots (being worn)  t - a blessed greased +3 silver dragon scale mail (being worn)  Comestibles  z - an uncursed K-ration  L - an uncursed lizard corpse  Scrolls  p - 2 blessed scrolls of charging named blessed  m - a scroll of teleportation  Potions  o - 9 diluted potions of extra healing  N - an uncursed potion of gain energy  v - an uncursed potion of speed (1 of 3)m|ELt +-----|...-----------..--------------...|.......|1---5.$.|.......|4.aa%.....%...._...|.aa5%---.4..|.......|-4.5----...|.......|----a------..----------------.@.||...|......|--------------|-----m|EEidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:92(131) Astral Plane $:0 HP:92(131) Pw:216(504) AC:-13 Exp:30 T:23207What do you want to dip into? [ovN or ?*] m|E<m|E< The potions mix...m|E=BOOM! They explode! 89(131)  Pw:220(504) AC:-13 Exp:30 T:23208n|E n|E EWhat do you want to use or apply? [bcf-hj-lnq-sxBDIPUYZ or ?*] n|E" Do what?  a - Take something out of the bag of holding b - Put something into the bag of holding c - Both of the above(end) o|EtH+----- Take out what type of objects?  a - All types b - Comestibles c - Scrolls d - Potions e - Wands A - Auto-select every item B - Items known to be Blessed C - Items known to be Cursed U - Items known to be Uncursed(end) o|E+o|Ef-----|...-----------..--------------...|.......|1---5.$.|.......|.aa%.....%...._...|.aa5%---.4..|.......| Take out what?  Potions a - 2 uncursed potions of extra healing b - a cursed potion of extra healing c - 2 uncursed potions of gain ability d - an uncursed potion of gain energy e - 3 blessed potions of healing f - 7 potions of holy water g - 2 potions of unholy water h - 2 uncursed potions of water(end) q|E+q|E^Y-----|...-----------..--------------...|.......|1---5.$.|.......|4.aa%.....%...._...|.aa5%---.4..|.......|q|EYmN - an uncursed potion of gain energy.1a...1q|E8Z 89(131)  Pw:220(504) AC:-13 Exp:30 T:23208The soldier ant misses.--More--r|EtThe soldier ant stings! 87(131)  Pw:220(504) AC:-13 Exp:30 T:232081 ..aA r|E--More--r|E6The Angel of Ptah zaps you with a magic missile!r|Eٳ|r|E--More--r|ECThe magic missile hits the soldier ant!|r|E --More--r|E"=The magic missile whizzes by you!|r|EJ"X|The magic missile bounces!--More--s|Ev'The magic missile whizzes by you!s|E--More--s|E;The magic missile hits the soldier ant!1  4.a 4.4 14a@.-s|Eo8The soldier ant misses.--More--s|EQThe soldier ant stings! 81(131)  Pw:220(504) AC:-13 Exp:30 T:23208a.s|E2s|EUnknown command ' '. 81(131)  Pw:220(504) AC:-13 Exp:30 T:23208s|EIgs|E~g# t|Edipt|E4Sipt|Et|E<What do you want to dip? [b-df-hj-xzBD-IL-PUYZ or ?*] t|Eݱ+ Amulets  O - an uncursed amulet of life saving (being worn)  d - the Amulet of Yendor named NUMBER 50  H - the blessed Eye of the Aethiopica  Weapons  x - a +0 dwarvish mattock (alternate weapon; not wielded)  E - the blessed rustproof +6 Magicbane (weapon in hand)  Armor  F - an uncursed thoroughly burnt +0 cloak of magic resistance (being worn)  u - a blessed rustproof +4 helm of brilliance (being worn)  w - an uncursed thoroughly burnt rotted +0 pair of leather gloves (being worn)  M - an uncursed burnt +2 pair of water walking boots (being worn)  t - a blessed greased +3 silver dragon scale mail (being worn)  Comestibles  z - an uncursed K-ration  L - an uncursed lizard corpse  Scrolls  p - 2 blessed scrolls of charging named blessed  m - a scroll of teleportation  Potions  o - 8 diluted potions of extra healing  N - an uncursed potion of gain energy  v - an uncursed potion of speed (1 of 3)v|EHe-----|...-----------..----------11----...|.......|---..$.|.......|4...%.....%...._...|aa.5%---4...|.......|-4A1----4..|.......|----a------..----------------.@.||...|......|--------------|-----v|E-I#Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:81(131) Astral Plane $:0 HP:81(131) Pw:220(504) AC:-13 Exp:30 T:23208What do you want to dip? [b-df-hj-xzBD-IL-PUYZ or ?*] v|E![+ Amulets  O - an uncursed amulet of life saving (being worn)  d - the Amulet of Yendor named NUMBER 50  H - the blessed Eye of the Aethiopica  Weapons  x - a +0 dwarvish mattock (alternate weapon; not wielded)  E - the blessed rustproof +6 Magicbane (weapon in hand)  Armor  F - an uncursed thoroughly burnt +0 cloak of magic resistance (being worn)  u - a blessed rustproof +4 helm of brilliance (being worn)  w - an uncursed thoroughly burnt rotted +0 pair of leather gloves (being worn)  M - an uncursed burnt +2 pair of water walking boots (being worn)  t - a blessed greased +3 silver dragon scale mail (being worn)  Comestibles  z - an uncursed K-ration  L - an uncursed lizard corpse  Scrolls  p - 2 blessed scrolls of charging named blessed  m - a scroll of teleportation  Potions  o - 8 diluted potions of extra healing  N - an uncursed potion of gain energy  v - an uncursed potion of speed (1 of 3)x|E y +-----|...-----------..----------11----...|.......|---..$.|.......|4...%.....%...._...|aa.5%---4...|.......|-4A1----4..|.......|----a------..----------------.@.||...|......|--------------|-----x|E Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:81(131) Astral Plane $:0 HP:81(131) Pw:220(504) AC:-13 Exp:30 T:23208What do you want to dip into? [ovN or ?*] x|E x|E The potions mix...x|Ea The mixture looks emerald. 81(131)  Pw:224(504) AC:-13 Exp:30 T:23209y|E  Amulets  O - an uncursed amulet of life saving (being worn)  d - the Amulet of Yendor named NUMBER 50  H - the blessed Eye of the Aethiopica  Weapons  x - a +0 dwarvish mattock (alternate weapon; not wielded)  E - the blessed rustproof +6 Magicbane (weapon in hand)  Armor  F - an uncursed thoroughly burnt +0 cloak of magic resistance (being worn)  u - a blessed rustproof +4 helm of brilliance (being worn)  w - an uncursed thoroughly burnt rotted +0 pair of leather gloves (being worn)  M - an uncursed burnt +2 pair of water walking boots (being worn)  t - a blessed greased +3 silver dragon scale mail (being worn)  Comestibles  z - an uncursed K-ration  L - an uncursed lizard corpse  Scrolls  p - 2 blessed scrolls of charging named blessed  m - a scroll of teleportation  Potions  o - 8 diluted potions of full healing  v - an uncursed potion of speed  Rings (1 of 2)||EGLEidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:81(131) Astral Plane $:0 HP:81(131) Pw:224(504) AC:-13 Exp:30 T:23209-----|...-----------..----------11----...|.......|---..$.|.......|4...%.....%...._...|aa.5%---4...|.......|-4A1----4..|.......|----a------..----------------.@.||...|......|--------------|-----}|E+What do you want to read? [mp or ?*] }|E5 Scrolls p - 2 blessed scrolls of charging named blessed m - a scroll of teleportation(end) ~|EB+~|E6 `As you read the scroll, it disappears.This is a charging scroll.--More--~|E ~|Eg 7What do you want to charge? [cfgjlnq-sIYZ or ?*] |E Wands c - a wand of cancellation (0:6) s - a wand of death (0:0) f - a wand of death (0:1) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (0:0) n - a wand of teleportation (0:3) Tools I - the Bell of Opening (0:2)(end) |EV +-----|...-----------..----------11----...|.......|---..$.|.......|4...%.....%...._...|aa.5%---4...|.......|-4A1----4..|.......|----a------..----------------.@.||...|EtW Your wand of teleportation glows briefly. 1a. 1|EW  81(131)  Pw:224(504) AC:-13 Exp:30 T:23209The soldier ant bites! 80(131)  Pw:224(504) AC:-13 Exp:30 T:23209--More--|EϑThe soldier ant stings! 79(131)  Pw:224(504) AC:-13 Exp:30 T:23209  79(131)  Pw:225(504) AC:-13 Exp:30 T:232104 aa.%.44 5.5.|E |E  Unknown command ' '. 79(131)  Pw:225(504) AC:-13 Exp:30 T:23210|E6|E+What do you want to read? [mp or ?*] |E! Scrolls p - a blessed scroll of charging named blessed m - a scroll of teleportation(end) |E$B+|EV$`As you read the scroll, it disappears.This is a charging scroll.--More--|E5 |E 7What do you want to charge? [cfgjlnq-sIYZ or ?*] |E Wands c - a wand of cancellation (0:6) s - a wand of death (0:0) f - a wand of death (0:1) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (1:5) n - a wand of teleportation (0:3) Tools I - the Bell of Opening (0:2)(end) |E +-----|...-----------..----------1----...|.......|41---..$.|.......|aa.%.....%...._...|a..%%---.4..|.......|-45.15----...|.......|----a------..----------------.@.||...|E Your wand of death glows briefly.1 .aa1a |EA  79(131)  Pw:225(504) AC:-13 Exp:30 T:23210The soldier ant misses.|E^ --More--|EYThe soldier ant misses.  14.a4a. 5 |Ea|EwbUnknown command ' '. 79(131)  Pw:225(504) AC:-13 Exp:30 T:23210|Eo 79(131)  Pw:225(504) AC:-13 Exp:30 T:23210|E=j 1 1aa1....@|Ej 79(131)  Pw:225(504) AC:-13 Exp:30 T:23210The soldier ant snaps wildly and misses!--More--|E The soldier ant strikes at thin air! 80(131)  Pw:227(504) AC:-13 Exp:30 T:232114 15|E |Eb Unknown command ' '. 80(131)  Pw:227(504) AC:-13 Exp:30 T:23211|Eo 80(131)  Pw:227(504) AC:-13 Exp:30 T:23211|Eki 80(131)  Pw:227(504) AC:-13 Exp:30 T:23211|E2 Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E* +-----|...-----------..---------4-----...|.......|11---..$.|.......|4%.....%...._...|4aa1%%---....|.......|-15..5----...|.......|----a------..----------------...||...5|....@..|--------------|-----|E* Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:80(131) Astral Plane $:0 HP:80(131) Pw:227(504) AC:-13 Exp:30 T:23211You feel the amulet draining your energy away. 80(131)  Pw:219(504) AC:-13 Exp:30 T:23211--More--|E (Where do you want to jump?|E7 -(For instructions type a ?)|E|E:|EJ |EO)|EE 1 .@.|Eb 1 .@...|E\ @. ......|E4@. ..|E N 80(131)  Pw:219(504) AC:-13 Exp:30 T:232114 15 15 1 5.441 5 5|E You hear a chugging sound. 80(131)  Pw:221(504) AC:-13 Exp:30 T:232124 4   54 5 5|E%  Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E+-----|...4-----------..---------4-----...|.......|1---..$.|.......|41%.....%...._...|45%%---....|.......|-151----...|.......|----.------..---------45-------1||...455|..@....|------...-------5-....|-..---.-|E-#Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:80(131) Astral Plane $:0 HP:80(131) Pw:221(504) AC:-13 Exp:30 T:23212You feel the amulet draining your energy away.|EVp 80(131)  Pw:215(504) AC:-13 Exp:30 T:23212--More--|E~(Where do you want to jump?|E~-(For instructions type a ?)|E0|E> |E |EN. @...|E] -.@..|----|EV -.@.--|E  80(131)  Pw:215(504) AC:-13 Exp:30 T:23212  80(131)  Pw:219(504) AC:-13 Exp:30 T:23213  4  4   1 1 5  4  5 44  5 1  45|EG   80(131)  Pw:219(504) AC:-13 Exp:30 T:23213 4   1 4   45   144 55  5---. A.@-|E Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|El$+-----|...-----------..--------------...|.......|---..$.|.......|4%.....%...._...|%%---....|.......|-1----...|.......|----.------..---------4-------||...45|.1|-----4455--..-------5--....|----...---A....@..|--------|E$ Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:80(131) Astral Plane $:0 HP:80(131) Pw:219(504) AC:-13 Exp:30 T:23213You feel the amulet draining your energy away.  80(131)  Pw:206(504) AC:-13 Exp:30 T:23213--More--|E1T(Where do you want to jump?|ElT-(For instructions type a ?)|E |E:|E|E{|E i   +.@.-|E5 f  - .@.-|ES S- .@. -|Ep I-.@. -|EC  84(131)  Pw:207(504) AC:-13 Exp:30 T:2321444 4 5|Eg In what direction? |E |E' As you kick the door, it crashes open! 84(131)  Pw:207(504) AC:-13 Exp:30 T:232145   4  4@V.5   ..45 54..55. A|ES Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|EP+-----|...-----------..--------------...|.......|---..$.|.......|5%.....%...._...|4%%---....|.......|-----...|.......|----.------..----------------||...4@V.5||-----..45---------54..55--|---.-------A....@....|------------|EoQ Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:84(131) Astral Plane $:0 HP:84(131) Pw:207(504) AC:-13 Exp:30 T:23214You feel the amulet draining your energy away.  84(131)  Pw:201(504) AC:-13 Exp:30 T:23214--More--|ERS(Where do you want to jump?|ES-(For instructions type a ?)|E |EA|E.?|Ex '-+-A@|.....@...&...@.D....A@5 . |E{x -.------.......- -V@A-.  |Ex ..----| @ -. |EWy  84(131)  Pw:205(504) AC:-13 Exp:30 T:2321544454|E| Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|Eh p+-----|...44-----------..--------------...|.......|-+-----..$.|.......|4545..%.....%...._...|@.%%---....|.......|----|-------...|.......|--.....----.------..-----------.......-------||...|@@.V...&||------..@.@.D---------5--V....AA--|----.-------5.|------------|E Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:84(131) Astral Plane $:0 HP:84(131) Pw:205(504) AC:-13 Exp:30 T:23215You feel the amulet draining your energy away. 84(131)  Pw:191(504) AC:-13 Exp:30 T:23215--More--|E (Where do you want to jump?|E; -(For instructions type a ?)|Eh|EK|E |E1}A--...@.... |EU-@.... |Ev---q....@ .-.  |EO444D.|EK 84(131)  Pw:191(504) AC:-13 Exp:30 T:23215The yellow dragon breathes acid!||The blast of acid whizzes by you!||Em--More--|E The blast of acid bounces!|EQ DThe blast of acid hits you!--More--|E@ &But it reflects from your armor!|E~ CThe blast of acid bounces!--More--|EA'The blast of acid whizzes by you!|E4 .5-@..V5  V|EYou hear a chugging sound. 44 4  54&. 5|E--More--|ECEPThe priest of Moloch wields a mace!A.|EE--More--|E^N .The Angel of Moloch zaps a wand of fire!|EN ,|--More--|E~DThe bolt of fire hits the yellow dragon!||E~--More--|E029The bolt of fire hits Famine.||Eo2<The bolt of fire hits you!--More--|EBut it reflects from your armor!@&DA.|E--More--|EC"Thou hadst best fight better than thou canst dress!"|E)--More--|E׎ pThe priest of Moloch casts a spell!aaaa|E --More--|ESRThe priest of Moloch summons insects! @|E--More--|E\The priest of Moloch wields a mace! 84(131)  Pw:194(504) AC:-13 Exp:30 T:23216 4@ .VV |EJ |EDK Unknown command ' '. 84(131)  Pw:194(504) AC:-13 Exp:30 T:23216|E~9o 84(131)  Pw:194(504) AC:-13 Exp:30 T:23216|EB Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E6+-----4|...4-----------..---------4-----...|.......|----+--44---..$.|.......|4.....%.....%...._...|545.@.%%---....|.......|----|---------...|.......|--...a@a.-----.------..-----------@...a&a..--------||...|....D....||-----5-@VV@AA..-----------.....--|----.-------5|------------|E#Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:84(131) Astral Plane $:0 HP:84(131) Pw:194(504) AC:-13 Exp:30 T:23216You feel the amulet draining your energy away.|Ep 84(131)  Pw:186(504) AC:-13 Exp:30 T:23216--More--|E=(Where do you want to jump?|El=-(For instructions type a ?)|E~ |E|EA--.A...q.@ .    |EA3|||.@||.@..|-A@@..---|-- 14    44445|EB4551.44 |EB 84(131)  Pw:186(504) AC:-13 Exp:30 T:23216The baluchitherium hits! 73(131)  Pw:186(504) AC:-13 Exp:30 T:23216|E]CThe baluchitherium hits! 64(131)  Pw:186(504) AC:-13 Exp:30 T:23216 4|EC--More--|EeThe priestess of Thoth wields a mace!4 .@|ET--More--|EDThe priestess of Ptah drinks a potion of invisibility!|Eڗ--More--|E*KThe priestess of Ptah's body takes on a strange transparency.|E*--More--|EG bFor some reason, the invisible priestess of Ptah's presence is known to you. --More--|E P @@|Eh ,Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:64(131) Astral Plane $:0 HP:64(131) Pw:186(504) AC:-13 Exp:30 T:23216You feel aggravated at the invisible priestess of Ptah.--More--|Ez4 55-----|...44-----------..---------|44|-----...|.......||.----+----.|---..$.|.......||.@....A....@.|%.....%...._...|-A@q@@....-%%---....|.......|-----|----------...|.......|--a&11-----.------..-----------4..--------||...|44D||-----5-445A-------------|----.-------5|------------|EEidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:64(131) Astral Plane $:0 HP:64(131) Pw:186(504) AC:-13 Exp:30 T:23216The priest of Moloch swings his mace.|EThe priest of Moloch hits! 35(131)  Pw:186(504) AC:-13 Exp:30 T:23216--More--|ESThe priest of Moloch kicks! 33(131)  Pw:186(504) AC:-13 Exp:30 T:23216|E}--More--|EY 8The priest of Moloch casts a spell at you!|E --More--|Ek?You feel as if you need some help.--More--|EKDYou feel a malignant aura surround the magic-absorbing blade. 39(131)  Pw:187(504) AC:-13 Exp:30 T:232174 4  44 |E* |E+ Unknown command ' '. 39(131)  Pw:187(504) AC:-13 Exp:30 T:23217|E |EȰ ,What do you want to drink? [ov or ?*] |E? Potions o - 8 diluted potions of full healing v - an uncursed potion of speed(end) |EoP+5|EpYou feel completely healed. 135(135)  Pw:187(504) AC:-13 Exp:30 T:2321751. 445a1  .|EpThe baluchitherium hits! 129(135)  Pw:187(504) AC:-13 Exp:30 T:23217--More--|Eo^The baluchitherium hits! 126(135)  Pw:187(504) AC:-13 Exp:30 T:232175 55  4A@....A@ 5|EMThe priest of Thoth zaps a wand of striking!--More--|E^ Boing!|EQ The wand hits the priest of Moloch!4  @@.&.5 |Ev --More--|Eze 3The priest of Moloch swings his mace.|Ee =The priest of Moloch misses.--More--|E</The priest of Moloch just misses!|Eg--More--|E$The priest of Moloch points at you, then curses.4  45A1 4  |Eo|ErpUnknown command ' '. 126(135)  Pw:187(504) AC:-13 Exp:30 T:23217|E:? l 126(135)  Pw:187(504) AC:-13 Exp:30 T:23217|E}s f 126(135)  Pw:187(504) AC:-13 Exp:30 T:23217|E 126(135)  Pw:190(504) AC:-13 Exp:30 T:23218544 @--.-- D1 A|Er In what direction? |E|ElAs you kick the door, it crashes open!-------.......@..._......1 |Em 126(135)  Pw:190(504) AC:-13 Exp:30 T:23218--More--|Eh You hear some noises in the distance.4 5 5 5  54..@..@A@qA..&4.5 V  |E --More--|El;=The priest of Moloch attacks a spot beside you.|E;--More--|E' =The priest of Moloch attacks a spot beside you.|E' --More--|E1The priest of Moloch casts a spell at thin air! 126(135)  Pw:191(504) AC:-13 Exp:30 T:23219.@ 4 44554   |E/|EW0Unknown command '^J'. 126(135)  Pw:191(504) AC:-13 Exp:30 T:23219|ES?l 126(135)  Pw:191(504) AC:-13 Exp:30 T:23219|E~ Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E$9/+4555-------..........5-----._@|...4...-----------..---------|4.44|-----...|.......||.----.----.|---..$.|.......||.@...@@A...@.|%.....%...._...|---.qA.@....---%%---....|.......|-----&----------...|.......|--41.5-----.------..-----------445V151--------||...|4||-------------------|----.-------|------------|E9Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:126(135) Astral Plane $:0 HP:126(135) Pw:191(504) AC:-13 Exp:30 T:23219You feel the amulet draining your energy away. 126(135)  Pw:180(504) AC:-13 Exp:30 T:23219--More--|E(Where do you want to jump?|E"-(For instructions type a ?)|E3 |E |E0|E|E:--|..||..||....||....|.@..@4.4|E{m|.@.|.4.55 |Eד;@.@.|EW%The high priest intones:|Ej"Pilgrim, you enter a sacred place!" 126(135)  Pw:180(504) AC:-13 Exp:30 T:232195 5  5@.5.4 41 11 5 |E--More--|E_[You hear a nearby zap. 135(135)  Pw:181(504) AC:-13 Exp:30 T:232204 ..@4 @44.4A..5.4  A1445|E |E~ There is an altar to Ptah (lawful) here. 135(135)  Pw:181(504) AC:-13 Exp:30 T:23220|E6 |E # |E!X|E4D|E |EXD: unknown extended command. 135(135)  Pw:181(504) AC:-13 Exp:30 T:23220|Eg_@5.  144 |E 135(135)  Pw:181(504) AC:-13 Exp:30 T:23220The priest of Thoth strikes at thin air!--More--|Ew 5The priest of Thoth strikes at thin air!|E.x --More--|E The priest of Thoth casts a spell at thin air!5 5 5  5A.A|E( --More--|EXm7The Angel of Anhur zaps you with a magic missile!|Em,|--More--|E$JThe magic missile hits the priestess of Thoth!||E$"|--More--|ED(The magic missile hits you!|E@But it reflects from your armor!--More--|E%JThe magic missile hits the priestess of Thoth!||E&--More--|E] uThe magic missile hits the Angel of Anhur. 4@4@. .@@ .4.A44.5 4 45 4|EzU |E V vUnknown command ' '. 135(135)  Pw:181(504) AC:-13 Exp:30 T:23220|E׼b 135(135)  Pw:181(504) AC:-13 Exp:30 T:23220|E 3What do you want to zap? [cfgjlnq-sYZ or ?*] |E= Wands c - a wand of cancellation (0:6) s - a wand of death (1:6) f - a wand of death (0:1) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (1:5) n - a wand of teleportation (0:3)(end) |E-+5554---------|.......||.......|-----|...@...|4|...4|..@@...|5-----------..---------||....@..||-----...|.......||.----@----.|---..$.|.......||.4.5..A..44..|%.....%...._...|---....A....---%%---....|.......|-----&----------...|.......||E3In what direction? |Ew 135(135)  Pw:184(504) AC:-13 Exp:30 T:23221...|EA  Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E /+5554---------|.......||.......|-----|...@...|4|...4|..@@...|5-----------..---------||....@..||-----...|.......||.----.----.|---..$.|.......||.4.5.....44..|%.....%...._...|---.........---%%---....|.......|-----&----------...|.......|--5111-----.------..-----------445--------||...|445||------4-------------|----.-------|------------|EN Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:631100 Astral Plane $:0 HP: Astral Plane $:0 HP:135(135) Astral Plane $:0 HP:135(135) Pw:184(504) AC:-13 Exp:30 T:23221You feel the amulet draining your energy away.|E d 135(135)  Pw:175(504) AC:-13 Exp:30 T:23221--More--|E'Where do you want to jump?|E ,(For instructions type a ?)|E5|E |E4}|Ed %.@|E 1.@a|E m4.@q@@@.|E ca1 155|E  135(135)  Pw:175(504) AC:-13 Exp:30 T:23221You have a sad feeling for a moment, then it passes. 55  @. @.5q.45 4  55 |E. --More--|E?8The priest of Thoth casts a spell!1aaaaaa|Ej8--More--|ESThe priest of Thoth summons insects! 135(135)  Pw:179(504) AC:-13 Exp:30 T:232224 _ @4@...@@4 1. 55 44@  4 5|Ep |Eq wUnknown command ' '. 135(135)  Pw:179(504) AC:-13 Exp:30 T:23222|E c 135(135)  Pw:179(504) AC:-13 Exp:30 T:23222|E] 135(135)  Pw:179(504) AC:-13 Exp:30 T:23222|E43What do you want to zap? [cfgjlnq-sYZ or ?*] |EI Wands c - a wand of cancellation (0:6) s - a wand of death (1:6) f - a wand of death (0:1) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (1:5) n - a wand of teleportation (0:2)(end) |E2+455---------|.......||.......|-----|..@_...||...4|...@...|4-----------..---------||.1.@...|5|-----...|.......||.----a----.|---..$.|.......||@.q..a@a.....|%.....%...._...|---...aaa.@@---%%---....|.......|-----&----------...|.......||EIn what direction? |E||E<You kill the giant ant!.||E224  135(135)  Pw:179(504) AC:-13 Exp:30 T:23222The death ray misses Famine.|||E+&..|Ed 135(135)  Pw:179(504) AC:-13 Exp:30 T:23222--More--|E=You hear some noises.a.|E6The giant ant misses.--More--|EH 6The giant ant attacks a spot beside you.|Et 6The giant ant misses.--More--|EThe giant ant misses.@.4.5.@. 1  54 V|EMThe priest of Thoth zaps a wand of striking!--More--|EO*The wand hits the giant ant!|EMO-The giant ant is killed!.|E'PBoing! 44 4.&| 44 |EKP--More--|E!iThe priest of Moloch wields a mace!@. 4|E |E xUnknown command '^J'. 135(135)  Pw:179(504) AC:-13 Exp:30 T:23222|Eć|E3What do you want to zap? [cfgjlnq-sYZ or ?*] |Ef Wands c - a wand of cancellation (0:6) s - a wand of death (1:6) f - a wand of death (0:0) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (1:5) n - a wand of teleportation (0:2)(end) |E-I+554---------|.......||..@....|-----|..._@..|4|...4|..a....|-----------..---------||..4....|5|-----...|.......||45----a----.|---..$.|.......||.....a@..@...|%.....%...._...|---...a&a.@.---%%---....|.......|-----|----------...|.......||EzIn what direction? |E^ ||E^ >You kill Famine!%||EM_ 94  135(135)  Pw:179(504) AC:-13 Exp:30 T:23222|||E_  135(135)  Pw:180(504) AC:-13 Exp:30 T:23223|..|Ep Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E9m+554---------|.......||..@....|-----|..._@..|4|...4|..a....|-----------..---------||..4....|5|-----...|.......||45----a----.|---..$.|.......||.....a@..@...|%.....%...._...|---...a%a.@.---%%---....|.......|-----|----------...|.......|--1.15-----.------..-----------451.5--------||...|4||------44V--5-------5----|----.-------5|------------|EmEidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:639244 Astral Plane $:0 HP: Astral Plane $:0 HP:135(135) Astral Plane $:0 HP:135(135) Pw:180(504) AC:-13 Exp:30 T:23223You feel the amulet draining your energy away.|Emd 135(135)  Pw:168(504) AC:-13 Exp:30 T:23223--More--|E0 (Where do you want to jump?|E$1 -(For instructions type a ?)«|E«|E«|En «|Ee- ë|EՕ1@.@aA...@ë|Er.4%4@a.a..VA....@..@...44..|.@D........ë|EЖl1.@a...ë|E    1...a1aa.ë|Eo 135(135)  Pw:168(504) AC:-13 Exp:30 T:23223The giant beetle strikes at thin air!--More--ë|Em GThe soldier ant attacks a spot beside you.--More--ë|E 8The soldier ant attacks a spot beside you.ë|E The giant beetle bites! 134(135)  Pw:168(504) AC:-13 Exp:30 T:23223.454. . 5.4V..DV.  55 5ë|E --More--ë|E?6The Angel of Moloch wields a long sword!ë|E?--More--ī|EWkThe Angel of Moloch wields a long sword!.@--More--ī|EjThe priest of Moloch casts a spell!aaaaī|E--More--ī|E)zThe priest of Moloch summons insects!4.@.--More--ī|ED7 cThe priest of Moloch casts a spell!aaaaī|E7 --More--ī|E The priest of Moloch summons insects! 134(135)  Pw:172(504) AC:-13 Exp:30 T:23224_.1a.%a.@.ī|EUnknown command ' '. 134(135)  Pw:172(504) AC:-13 Exp:30 T:23224ū|Eyl 134(135)  Pw:172(504) AC:-13 Exp:30 T:23224ū|Ei9 =The magic-absorbing blade scares the giant ant!ū|E9 --More--ƫ|E/:4You kill the giant ant!*ƫ|E:368  134(135)  Pw:172(504) AC:-13 Exp:30 T:23224The killer bee misses.--More--ƫ|E%The soldier ant misses.ƫ|EThe soldier ant misses.1..a5aaa--More--ƫ|E0KThe vampire lord hits! 133(135)  Pw:172(504) AC:-13 Exp:30 T:23224ƫ|ELThe vampire lord bites! 122(135)  Pw:172(504) AC:-13 Exp:30 T:23224454 .4 54.AV. 5 5 5ƫ|EM--More--ƫ|E 8The Angel of Moloch swings his long sword.ƫ|E~ The Angel of Moloch hits! 119(135)  Pw:172(504) AC:-13 Exp:30 T:23224ƫ|E --More--ƫ|E7- 8The Angel of Moloch swings his long sword.ƫ|E- The Angel of Moloch hits! 113(135)  Pw:172(504) AC:-13 Exp:30 T:23224--More--ƫ|E0The Angel of Moloch hits! 112(135)  Pw:172(504) AC:-13 Exp:30 T:23224ƫ|Eu--More--ǫ|EThe air crackles around the Angel of Moloch. 112(135)  Pw:175(504) AC:-13 Exp:30 T:232254..@.@@.ǫ|Ef|ǫ|E}Unknown command '^J'. 112(135)  Pw:175(504) AC:-13 Exp:30 T:23225ǫ|El 112(135)  Pw:175(504) AC:-13 Exp:30 T:23225ǫ|E̬ f 112(135)  Pw:175(504) AC:-13 Exp:30 T:23225ǫ|E U-. @. .ǫ|EJ CYou see here a green gem..aǫ|E  112(135)  Pw:175(504) AC:-13 Exp:30 T:23225The soldier ant misses.--More--ȫ|E"%The soldier ant misses.ȫ|Ec#uThe giant beetle strikes at thin air!.a.aȫ|E#--More--ȫ|E5mThe giant beetle misses.1.a a.1.|.aa.aa.aȫ|EmThe yellow dragon bites! 105(135)  Pw:175(504) AC:-13 Exp:30 T:23225--More--ȫ|E The yellow dragon hits! 104(135)  Pw:175(504) AC:-13 Exp:30 T:23225ȫ|E` The yellow dragon hits! 103(135)  Pw:175(504) AC:-13 Exp:30 T:23225. .45 4@..5.A VV.5   A5ȫ|E --More--ȫ|E /The Angel of Moloch zaps a wand of sleep!ȫ|E |ȫ|E --More--ɫ|EX`9The sleep ray whizzes by you!|ɫ|E`GThe sleep ray hits the soldier ant.|ɫ|E`/|--More--ɫ|E?The sleep ray bounces!ɫ|E}ɫ|EuThe sleep ray hits the soldier ant. .4.@@@..a@.-ɫ|E ɫ|E OThe magic-absorbing blade scares the giant beetle!--More--ʫ|Ec-The giant beetle turns to flee!ʫ|Eg 103(135)  Pw:175(504) AC:-13 Exp:30 T:23225The killer bee misses. 111(135)  Pw:178(504) AC:-13 Exp:30 T:23226.1..%aa..a.aʫ|E;The priest of Anhur drinks a potion of speed!|E>--More--|E KThe priest of Anhur is suddenly moving faster.--More--|EQThe renegade priest of Anhur casts a spell!aaa11|E--More--|EThe renegade priest of Anhur summons insects!.@A&A |E--More--|EZB 8The Angel of Moloch zaps you with a magic missile!|EB ----More--|E IThe magic missile misses the invisible Death.-|E "---More--|EoAThe magic missile hits the giant ant!-|EFo--More--|E TThe magic missile hits the giant beetle!---More--|Ek=The magic missile whizzes by you!-|E--More--|EE The magic missile hits the fire ant!a@aa.&.@@ @ |E You hear a chugging sound. 75(135)  Pw:136(504) AC:-13 Exp:30 T:23238@|E( Unknown command ' '. 75(135)  Pw:136(504) AC:-13 Exp:30 T:23238|Ed_o 75(135)  Pw:136(504) AC:-13 Exp:30 T:23238|Eqi 75(135)  Pw:136(504) AC:-13 Exp:30 T:23238|E3What do you want to zap? [cfgjlnq-sYZ or ?*] |E Wands c - a wand of cancellation (0:6) s - a wand of death (1:5) f - a wand of death (0:0) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (1:5) n - a wand of teleportation (0:2)(end) |E`m+---------|.......||.......|-----|..._...||...|.......|-----------..---------||.......||-----...|.......||.----.----.|---..$.|.......||.............|%.....%...._...|---....%....---%%---....|.......|-----|----------...|.......||EIn what direction? |Ev 3a _..aaa@  |E[v  75(135)  Pw:136(504) AC:-13 Exp:30 T:23238Gregg the Patriarch zaps a wand of magic missile!|E{v --More--|E}GThe magic missile hits the Angel of Moloch.-|E~--More--|EIThe magic missile misses the invisible Death.-|E--More--|EQ@The magic missile hits the fire ant!-|EQ--More--|EThe magic missile hits the giant ant! 75(135)  Pw:138(504) AC:-13 Exp:30 T:23239  .@@ & ..@@TDaaA@4A5@A@  4  5|E+ |E, Unknown command ' '. 75(135)  Pw:138(504) AC:-13 Exp:30 T:23239|E o 75(135)  Pw:138(504) AC:-13 Exp:30 T:23239|EK i 75(135)  Pw:138(504) AC:-13 Exp:30 T:23239|E 3What do you want to zap? [cfgjlnq-sYZ or ?*] |EuG  Wands c - a wand of cancellation (0:6) s - a wand of death (1:5) f - a wand of death (0:0) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (1:4) n - a wand of teleportation (0:2)(end) |EOpl+---------|.......||.......|-----|..._...||...|.......|-----------..---------||.......||-----...|.......||.----.----.|---..$.|.......||.............|%.....%...._...|---....%....---%%---....|.......|-----|----------...|.......||EpIn what direction? |Eh-|EBh/You kill the fire ant!-.|Evhu928  75(135)  Pw:138(504) AC:-13 Exp:30 T:23239|EhEYou kill the orange dragon!-%|Ehw43552  75(135)  Pw:138(504) AC:-13 Exp:30 T:23239|Eh--More--|EN=You kill the ice troll!-%|ENv4836  75(135)  Pw:138(504) AC:-13 Exp:30 T:23239|E OtYou kill the renegade priest of Anhur!1a$..|ELO}6900  75(135)  Pw:138(504) AC:-13 Exp:30 T:23239--More--|E \The giant beetle misses. @@ |E2 --More--|E7Gregg the Patriarch zaps a wand of magic missile!|E|E--More--|E. HThe magic missile hits the priest of Moloch!-|E/ --More--|E, GThe magic missile hits the Angel of Moloch.-|E- ]A.A.5 |E- --More--|EThe Angel of Ptah picks up a scroll of teleportation..4..@&. A44|E--More--|E:{"This time I shall let thee off with a spanking, but let it not happen again."A.|E3: --More--|E#K The Angel of Moloch zaps you with a magic missile!|ES----More--|EGThe magic missile hits the invisible Death!-|E!---More--|E| DThe magic missile hits the giant beetle!-|E =The magic missile hits you!--More--|EtM &But it reflects from your armor!|EM --More--|EThe magic missile hits the giant beetle!.@@@a.&@@  |E--More--|Eo@The invisible priestess of Moloch picks up a mace.|E--More--|EXWThe invisible priestess of Moloch picks up a scroll.@|E- |E Unknown command ' '. 75(135)  Pw:138(504) AC:-13 Exp:30 T:23239|EK o 75(135)  Pw:138(504) AC:-13 Exp:30 T:23239|Eyi 75(135)  Pw:138(504) AC:-13 Exp:30 T:23239|E'3What do you want to zap? [cfgjlnq-sYZ or ?*] |EY |EY zNever mind. 75(135)  Pw:138(504) AC:-13 Exp:30 T:23239|Emlk 75(135)  Pw:139(504) AC:-13 Exp:30 T:23240---....-5..-.@ .@-a.A5..-..-..---|E3What do you want to zap? [cfgjlnq-sYZ or ?*] |E6? Wands c - a wand of cancellation (0:6) s - a wand of death (1:4) f - a wand of death (0:0) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (1:4) n - a wand of teleportation (0:2)(end) |EXYd---------|.......||.......|-----|..._...||...|.......|-----------..---------||.......||-----...|.......||.----.----.|---..$.|.......||.............|%.....%...._...|---....%....---%%---....|.......|-----|----------...|.......||EY3What do you want to zap? [cfgjlnq-sYZ or ?*] |EH|EzNever mind. 75(135)  Pw:139(504) AC:-13 Exp:30 T:23240|E m4...@5A|EE  75(135)  Pw:139(504) AC:-13 Exp:30 T:23240The fire ant strikes at thin air!|Ef --More--|E)The fire ant snaps wildly and misses!@a& @.@-@. 44@ 4|E[--More--|E_The invisible priestess of Moloch picks up a robe. @|Ew~ |E~ Unknown command ' '. 75(135)  Pw:139(504) AC:-13 Exp:30 T:23240|E o 75(135)  Pw:139(504) AC:-13 Exp:30 T:23240|Ei 75(135)  Pw:139(504) AC:-13 Exp:30 T:23240|E, 3What do you want to zap? [cfgjlnq-sYZ or ?*] |EFx Wands c - a wand of cancellation (0:6) s - a wand of death (1:4) f - a wand of death (0:0) Y - a thoroughly rusty wand of digging (0:4) l - a wand of digging (0:3) g - a wand of digging Z - a wand of fire (0:5) j - a wand of secret door detection (0:9) q - a wand of striking (0:7) r - a wand of teleportation (1:4) n - a wand of teleportation (0:2)(end) |EG m+---------|.......||.......|-----|..._...||...|.......|-----------..---------||.......||-----...|.......||.----.----.|---..$.|.......||.............|%.....%...._...|---....%....---%%---....|.......|-----|----------...|.......||E In what direction? |E/  87(135)  Pw:140(504) AC:-13 Exp:30 T:232414...A|EA  Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|EKr K+---------|.......|---|.......|-----4..|..._...||...-..-------|.......|-----------..---------||...---@||.......||-----...|.......||..|...4---a&@|.----.----.|---..$.|.......||..._@@.-@....@aa.AA|.............|%.....%...._...||..4|...5---4A@---....%....---%%---....|.......|||...---4-----|----------...|.......|-..-----|-----------.------..---------..|5----------------||...---||||-----------------------|----|-------%-------||-----------------|Er #Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:646900 Astral Plane $:0 HP: Astral Plane $:0 HP:87(135) Astral Plane $:0 HP:87(135) Pw:140(504) AC:-13 Exp:30 T:23241You feel the amulet draining your energy away.|Er p 87(135)  Pw:128(504) AC:-13 Exp:30 T:23241--More--|E (Where do you want to jump?|E -(For instructions type a ?)|ER\|E|E)@ |EE |EK4@ @-A5|E-.-.5@. .4-.-|EG-.@..-|E-|--.. @.1..--|-|EɰY 5aa a |E 87(135)  Pw:128(504) AC:-13 Exp:30 T:23241Olaf the Robber drinks a potion of gain level!--More--|EOlaf the Robber seems more experienced. 5@.@AA  .A4|E(--More--|E= 2The priestess of Ptah wields a mace!|E(> --More--|Ek rThe mace welds itself to the priestess of Ptah's hand! 87(135)  Pw:132(504) AC:-13 Exp:30 T:23242 45 .@4a.@ a45 4 5|EG|EoHUnknown command ' '. 87(135)  Pw:132(504) AC:-13 Exp:30 T:23242|E|o 87(135)  Pw:132(504) AC:-13 Exp:30 T:23242|EKti 87(135)  Pw:132(504) AC:-13 Exp:30 T:23242|E$O .1@ _4. ..1 ...@-----|E P  87(135)  Pw:132(504) AC:-13 Exp:30 T:23242You hear a chugging sound. @.5A.A.@.|E2P KThe priestess of Ptah strikes at thin air!--More--|EP8The priestess of Ptah strikes at thin air!|E-Q--More--|ErThe priestess of Ptah casts a spell at thin air!.@ 54  A 4 5 |Eq|E-rUnknown command ' '. 87(135)  Pw:132(504) AC:-13 Exp:30 T:23242|E( o 87(135)  Pw:132(504) AC:-13 Exp:30 T:23242|E i 87(135)  Pw:132(504) AC:-13 Exp:30 T:23242|E7:3What do you want to zap? [cfgjlnq-sYZ or ?*]  |E# |E#In what direction?  |E*A- |EThe Angel of Anhur gets angry! 87(135)  Pw:135(504) AC:-13 Exp:30 T:23243 |E- Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2) |Ew3+---------|.......|-----|.......|-----.A.||..._...||...---@.--------|.......|-----------..---------|.|.@.----5||.......||-----...|.......||....15|@A..---4|.----.----.|---..$.|.......||..._.4.-@....aA|.............|%.....%...._...||.....@.|....---41---....%....---%%---....|.......||.....|...----5-----|----------...|.......|--------..------|-----------.------..---------...||----------------||...-----||||-----------------------|----|-------%-------||----------------- |EϨ#Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:646900 Astral Plane $:0 HP: Astral Plane $:0 HP:87(135) Astral Plane $:0 HP:87(135) Pw:135(504) AC:-13 Exp:30 T:23243You feel the amulet draining your energy away. |Ep 87(135)  Pw:125(504) AC:-13 Exp:30 T:23243--More-- |E`l(Where do you want to jump? |El-(For instructions type a ?) |EfW |E# |E6  |E5------4......@aA..@@..- |ED-15@ |Ed454.@ |E65   4 5 5 |EY&The high priest intones: |Em"Pilgrim, you enter a sacred place!".a-1 |E2p 87(135)  Pw:125(504) AC:-13 Exp:30 T:23243--More-- |E <Olaf the Robber drinks a potion of gain level! |E' --More-- |E Olaf the Robber seems more experienced..5 5 4..5.A  4 5 5 |E --More-- |E0The priest of Thoth turns to flee! |ECThe priest of Thoth wields a mace!--More-- |EkThe mace welds itself to the priest of Thoth's hand!.4.@_.a4 |Elp 87(135)  Pw:125(504) AC:-13 Exp:30 T:23243--More-- |EThe fire ant turns to flee! 93(135)  Pw:129(504) AC:-13 Exp:30 T:23244@. |E;  |Ee< Unknown command ' '. 93(135)  Pw:129(504) AC:-13 Exp:30 T:23244|E Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|EY1 $+---------|.......|-----|.......|-----...||..._...||...---------.5--------|.......|-----------..--------- 5|.......|44.----||.......||-----...|.......||...@...|5...---|.----.----.|---..$.|.......||..._A@.-.....-1|.............|%.....%...._...||....a@.|4...------....%....---%%---....|.......| 4|.....@.|...---------|----------...|.......| 5---------..------|-----------.------..---------5...||----------------||...-----||||-----------------------|----|-------%-------||-----------------|E1 Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:646900 Astral Plane $:0 HP: Astral Plane $:0 HP:93(135) Astral Plane $:0 HP:93(135) Pw:129(504) AC:-13 Exp:30 T:23244You feel the amulet draining your energy away.|E1 l 93(135)  Pw:114(504) AC:-13 Exp:30 T:23244--More--|E (Where do you want to jump?|E -(For instructions type a ?)|E |E+m|EL K@A@.|EM +4@.|EM ' .a|EM  93(135)  Pw:114(504) AC:-13 Exp:30 T:23244Olaf the Robber drinks a potion of invisibility!|ELN --More--|EOlaf the Robber's body takes on a strange transparency. 93(135)  Pw:116(504) AC:-13 Exp:30 T:232455.  ..5.@@@@AA..  44  5 5|Ek|E lUnknown command ' '. 93(135)  Pw:116(504) AC:-13 Exp:30 T:23245|Ee k 93(135)  Pw:116(504) AC:-13 Exp:30 T:23245|El e 93(135)  Pw:116(504) AC:-13 Exp:30 T:23245|E Choose which spell to cast    Name Level Category Fail  a - force bolt 1* attack 0%  b - magic missile 2 attack 0%  c - light 1 divination 0%  d - dig 5 matter 0%  e - levitation 4 escape 0%  f - haste self 3 escape 0%  g - protection 1 clerical 0%  h - extra healing 3 healing 0%  i - identify 3 divination 0%  j - jumping 1 escape 0%  k - finger of death 7 attack 0%  l - fireball 4 attack 0%  m - magic mapping 5 divination 0%  n - teleport away 6 escape 0%  o - charm monster 3 enchantment 0%  p - detect treasure 4 divination 0%  q - sleep 1 enchantment 0%  r - healing 1 healing 0%  s - polymorph 6 matter 0%  t - cure blindness 2 healing 0% (1 of 2)|E +---------|.......|-----|.......|-----...||..._...||...---------5.--------|.......|-----------..---------|.......|...----||.......||-----...|.......|5|.......|@@..---|.----.----.|---..$.|.......||..._@@@-A....-|.............|%.....%...._...||...A...|....------....%....---%%---....|.......|4|...@.a.|4..---------|----------...|.......|---------..------|-----------.------..--------- 55...||----------------||...-----||||-----------------------|----|-------%-------||-----------------|EqEidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:646900 Astral Plane $:0 HP: Astral Plane $:0 HP:93(135) Astral Plane $:0 HP:93(135) Pw:116(504) AC:-13 Exp:30 T:23245You feel the amulet draining your energy away.|El 93(135)  Pw:105(504) AC:-13 Exp:30 T:23245--More--|E(Where do you want to jump?|E-(For instructions type a ?)|E |EE|E3;4@.|Eh`4@A@.|E 93(135)  Pw:105(504) AC:-13 Exp:30 T:23245.a@a.|E6You hear a chugging sound.--More--|EW _For some reason, Joshua the invisible Paladin's presence is known to you. --More--|E0PN @@|E{P%Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:646900 Astral Plane $:0 HP: Astral Plane $:0 HP:93(135) Astral Plane $:0 HP:93(135) Pw:105(504) AC:-13 Exp:30 T:23245You feel aggravated at Joshua the invisible Paladin.--More--|E ---------|.......|-----|.......|-----...||..._...||...---------5.--------|.......|-----------..---------|.......|...----||.......||-----...|.......|I|.......|44..---|.----.----.|---..$.|.......||.@A_@.@A.....-Aa@|.............|%.....%...._...|4|.....@a|....------....%....---%%---....|.......| |.......|4..---------|----------...|.......|---------..------|-----------.------..--------- 5 5...||----------------||...-----||||-----------------------|----|-------%-------||-----------------|E/Eidolos the Mage St:18 Dx:17 Co:16 In:24 Wi:24 Ch:8 Chaotic S:646900 Astral Plane $:0 HP: Astral Plane $:0 HP:93(135) Astral Plane $:0 HP:93(135) Pw:105(504) AC:-13 Exp:30 T:23245The Angel of Ptah zaps you with a magic missile!-|E --More--|EUAGThe magic missile hits the priest of Thoth.-|EA&---More--|E× OThe magic missile hits the high priestess of Anhur.-|E !---More--|Ee6The magic missile hits the Angel of Ptah.|E--More--|E`6But it reflects from the Angel of Ptah's shield!|Eb.5@..A_..a@@ A@ a@@..45 |E4b--More--|E{8You hear some noises in the distance. 93(135)  Pw:106(504) AC:-13 Exp:30 T:232465|EM |EƷ~Unknown command ' '. 93(135)  Pw:106(504) AC:-13 Exp:30 T:23246|E- 93(135)  Pw:106(504) AC:-13 Exp:30 T:23246@..  .a@|EiYou hear a chugging sound..44@@.. .4.4|Ej 109(135)  Pw:110(504) AC:-13 Exp:30 T:23247.@A@@|EBThere is an altar to Anhur (chaotic) here. 109(135)  Pw:110(504) AC:-13 Exp:30 T:23247|Et |Et # |E Wipe|E(O |EO|ET|Ey|E wOOT: unknown extended command. 109(135)  Pw:110(504) AC:-13 Exp:30 T:23247|E, |E, # |EO offer|Effer|E|E10What do you want to sacrifice? [dL or ?*] |E^q Amulets d - the Amulet of Yendor named NUMBER 50 Comestibles L - an uncursed lizard corpse(end) |E\+--------.......||EGYou offer the Amulet of Yendor to Anhur...--More--Term-TtyRec-Plus-0.09/t/simple.ttyrec000644 000765 000024 00000000155 11721776455 020142 0ustar00sartakstaff000000 000000 eEframe 1eE frame 2eEframe 3eEB penultimate frameeEIX final frameTerm-TtyRec-Plus-0.09/t/simple.ttyrec.bz2000644 000765 000024 00000000200 11721776455 020625 0ustar00sartakstaff000000 000000 BZh91AY&SY;NW$3N P@8 @#'V@ P#i20!ihLTTG,P$q z!2ۂ7e:1.Ю1BB!\@'RgNܑN$ӕTerm-TtyRec-Plus-0.09/lib/Term/000755 000765 000024 00000000000 11725440200 016602 5ustar00sartakstaff000000 000000 Term-TtyRec-Plus-0.09/lib/Term/TtyRec/000755 000765 000024 00000000000 11725440200 020014 5ustar00sartakstaff000000 000000 Term-TtyRec-Plus-0.09/lib/Term/TtyRec/Plus.pm000644 000765 000024 00000034570 11725440075 021320 0ustar00sartakstaff000000 000000 package Term::TtyRec::Plus; use warnings; use strict; use Carp qw/croak/; use IO::Uncompress::Bunzip2 qw($Bunzip2Error); our $VERSION = '0.09'; sub new { my $class = shift; my $self = { # options infile => "-", filehandle => undef, bzip2 => undef, time_threshold => undef, frame_filter => sub { @_ }, # state frame => 0, prev_timestamp => undef, accum_diff => 0, relative_time => 0, # allow overriding of options *and* state @_, }; $self->{initial_state} = { map { $_ => $self->{$_} } qw/frame prev_timestamp accum_diff relative_time/ }; bless $self, $class; if (defined($self->{filehandle})) { undef $self->{infile}; } else { if (!defined($self->{infile}) || $self->{infile} eq '-') { $self->{filehandle} = *STDIN; } else { open($self->{filehandle}, '<', $self->{infile}) or croak "Unable to open '$self->{infile}' for reading: $!"; } } # If the caller tells us explicitly what to do, we honor that. # Otherwise use bzip2 if and only if the filename ends in .bz2. $self->{bzip2} = defined($self->{infile}) && $self->{infile} =~ /\.bz2$/ unless defined $self->{bzip2}; $self->{bzip2} = not not $self->{bzip2}; # force 0 or 1 if ($self->{bzip2}) { my $bz2_handle = IO::Uncompress::Bunzip2->new( $self->{filehandle} ) or die "bunzip2 failed: $Bunzip2Error\n"; $self->{filehandle} = $bz2_handle; } croak "Cannot have a negative time threshold" if defined($self->{time_threshold}) && $self->{time_threshold} < 0; return $self; } sub next_frame { my $self = shift; $self->{frame}++; my $hgot = read $self->{filehandle}, my $hdr, 12; # clean EOF return if $hgot == 0; croak "Expected 12-byte header, got $hgot in frame $self->{frame}" if $hgot != 12; my @hdr = unpack "VVV", $hdr; my $orig_timestamp = $hdr[0] + $hdr[1] / 1_000_000; my $diffed_timestamp = $orig_timestamp + $self->{accum_diff}; my $timestamp = $diffed_timestamp; my $old_timestamp = $timestamp; # old = pre-filter my $prev_timestamp = $self->{prev_timestamp}; # apply a threshold, if applicable if (defined($self->{time_threshold}) && defined($prev_timestamp) && $timestamp - $prev_timestamp > $self->{time_threshold}) { $timestamp = $prev_timestamp + $self->{time_threshold}; $self->{accum_diff} += $timestamp - $old_timestamp; $old_timestamp = $timestamp; } my $dgot = read $self->{filehandle}, my ($data), $hdr[2]; croak "Expected $hdr[2]-byte frame, got $dgot in frame $self->{frame}" if $dgot != $hdr[2]; $self->{frame_filter}(\$data, \$timestamp, \$self->{prev_timestamp}); $self->{prev_timestamp} = $timestamp; my $diff = defined($prev_timestamp) ? $timestamp - $prev_timestamp : 0; $self->{relative_time} += $diff unless $self->{frame} == 1; $self->{accum_diff} += $timestamp - $old_timestamp; # rebuild header $hdr[0] = int($timestamp); $hdr[1] = int(1_000_000 * ($timestamp - $hdr[0])); $hdr[2] = length($data); my $newhdr = pack "VVV", @hdr; # test if header is kosher my @newhdr = unpack "VVV", $newhdr; croak "Unable to create a new header, seconds portion of timestamp in frame $self->{frame}: want to write $hdr[0], can only write $newhdr[0]" if $hdr[0] != $newhdr[0]; croak "Unable to create a new header, microseconds portion of timestamp in frame $self->{frame}: want to write $hdr[1], can only write $newhdr[1]" if $hdr[1] != $newhdr[1]; croak "Unable to create a new header, frame length in frame $self->{frame}: want to write $hdr[2], can only write $newhdr[2]" if $hdr[2] != $newhdr[2]; return { data => $data, orig_timestamp => $orig_timestamp, diffed_timestamp => $diffed_timestamp, timestamp => $timestamp, prev_timestamp => $prev_timestamp, diff => $diff, orig_header => $hdr, header => $newhdr, frame => $self->{frame}, relative_time => $self->{relative_time}, }; } sub grep { my $self = shift; my @conditions; foreach my $arg (@_) { if (ref($arg) eq 'CODE') { push @conditions, $arg; } elsif (ref($arg) eq 'Regexp') { push @conditions, sub { $_[0]{data} =~ $arg }; } elsif (ref($arg) eq '') { push @conditions, sub { index($_[0]{data}, $arg) > -1 } } else { croak "Each of grep()'s arguments must be a subroutine, regular expression, or string; you passed a " . ref($arg); } } FRAME: while (my $frame_ref = $self->next_frame()) { CONDITION: foreach (@conditions) { next FRAME if not $_->($frame_ref); } return $frame_ref; } # no matching frames! return; } sub rewind { my $self = shift; while (my ($k, $v) = each %{$self->{initial_state}}) { $self->{$k} = $v; } seek $self->{filehandle}, 0, 0 or croak "Unable to seek on filehandle"; } sub infile { $_[0]->{infile}; } sub filehandle { $_[0]->{filehandle}; } sub bzip2 { $_[0]->{bzip2}; } sub time_threshold { $_[0]->{time_threshold}; } sub frame_filter { $_[0]->{frame_filter}; } sub frame { $_[0]->{frame}; } sub prev_timestamp { $_[0]->{prev_timestamp}; } sub relative_time { $_[0]->{relative_time}; } sub accum_diff { $_[0]->{accum_diff}; } 1; __END__ =head1 NAME Term::TtyRec::Plus - read a ttyrec =head1 SYNOPSIS C is a module that lets you read ttyrec files. The related module, L is designed more for simple interactions. C gives you more information and, using a callback, lets you munge the data block and timestamp. It will do all the subtle work of making sure timing is kept consistent, and of rebuilding each frame header. use Term::TtyRec::Plus; # complete (but simple) ttyrec playback script foreach my $file (@ARGV) { my $ttyrec = Term::TtyRec::Plus->new(infile => $file, time_threshold => 10); while (my $frame_ref = $ttyrec->next_frame()) { select undef, undef, undef, $frame_ref->{diff}; print $frame_ref->{data}; } } =head1 CONSTRUCTOR AND STARTUP =head2 new() Creates and returns a new C object. my $ttyrec = Term::TtyRec::Plus->new(); =head3 Parameters Here are the parameters that C<< Term::TtyRec::Plus->new() >> recognizes. =over 4 =item infile The input filename. A value of C<"-">, which is the default, or C, means C. =item filehandle The input filehandle. By default this is C; if you have already opened the ttyrec then you can pass its filehandle to the constructor. If both filehandle and infile are defined, filehandle is used. =item bzip2 Perform bzip2 decompression. By default this is C, which signals that bzip2 decompression should occur if and only if the filename is available and it ends in ".bz2". Otherwise, you can force or forbid decompression by setting bzip2 to a true or false value, respectively. After the call to new, this field will be set to either 1 if decompression is enabled or 0 if it is not. =item time_threshold The maximum difference between two frames, in seconds. If C, which is the default, there is no enforced maximum. The second most common value would be C<10>, which some ttyrec utilities (such as timettyrec) use. =item frame_filter A callback, run for each frame before returning the frame to the user of C. This callback receives three arguments: the frame text, the timestamp, and the timestamp of the previous frame. All three arguments are passed as scalar references. The previous frame's timestamp is C for the first frame. The return value is not currently looked at. If you modify the timestamp, the module will make sure that change is noted and respected in further frame timestamps. Modifications to the previous frame's timestamp are currently ignored. sub halve_frame_time_and_stumblify { my ($data_ref, $time_ref, $prev_ref) = @_; $$time_ref = $$prev_ref + ($$time_ref - $$prev_ref) / 2 if defined $$prev_ref; $$data_ref =~ s/Eidolos/Stumbly/g; } =back =head3 State In addition to passing arguments, you can modify C's initial state, if you want to. This could be useful if you are chaining multiple ttyrecs together; you could pass a different initial frame. Support for such chaining might be added in a future version. =over 4 =item frame The initial frame number. Default C<0>. =item prev_timestamp The previous frame's timestamp. Default C. =item accum_diff The accumulated difference of all frames seen so far; see the section on C in C's return value. Default C<0>. =item relative_time The time passed since the first frame. Default C<0>. =back =head1 METHODS =head2 next_frame() C reads and processes the next frame in the ttyrec. It accepts no arguments. On EOF, it will return C. On malformed ttyrec input, it will die. If it cannot reconstruct the header of a frame (which might happen if the callback sets the timestamp to -1, for example), it will die. Otherwise, a hash reference is returned with the following fields set. =over 4 =item data The frame data, filtered through the callback. The original data block is not made available. =item orig_timestamp The frame timestamp, straight out of the file. =item diffed_timestamp The frame timestamp, with the accumulated difference of all of the previous frames applied to it. This is so consistent results are given. For example, if your callback adds three seconds to frame 5's timestamp, then frame 6's diffed timestamp will take into account those three seconds, so frame 6 happens three seconds later as well. So the net effect is frame 5 is extended by three seconds, and no other frames' relatives times are affected. =item timestamp The diffed timestamp, filtered through the callback. =item prev_timestamp The previous frame's timestamp (after diffing and filtering; the originals are not made available). =item diff The difference between the current frame's timestamp and the previous frame's timestamp. Yes, it is equivalent to C, but it is provided for convenience. On the first frame it will be C<0> (not C). =item orig_header The 12-byte frame header, straight from the file. =item header The 12-byte frame header, reconstructed from C and C (so, after filtering, etc.). =item frame The frame number, using 1-based indexing. =item relative_time The time between the first frame's timestamp and the current frame's timestamp. =back =head2 grep() Returns the next frame that meets the specified criteria. C accepts arguments that are subroutines, regex, or strings; anything else is a fatal error. If you pass multiple arguments to C, each one must be true. The subroutines receive the frame reference that is returned by C. You can modify the frame, but do so cautiously. my $next_jump_frame_ref = $t->grep("Where do you want to jump?", sub { $_[0]{data} !~ /Message History/}); =head2 rewind() Rewinds the ttyrec to the first frame and resets state variables to their initial values. Note that if C is not seekable (such as STDIN on some systems, or if bzip2 decompression is used), C will die. =head2 infile() Returns the infile passed to the constructor. If a filehandle was passed, this will be C. =head2 filehandle() Returns the filehandle passed to the constructor, or if C was used, a handle to C. =head2 bzip2() Returns 1 if bzip2 decompression has taken place, 0 if it has not. =head2 time_threshold() Returns the time threshold passed to the constructor. By default it is C. =head2 frame_filter() Returns the frame filter callback passed to the constructor. By default it is C. =head2 frame() Returns the frame number of the most recently returned frame. =head2 prev_timestamp() Returns the timestamp of the most recently returned frame. =head2 relative_time() Returns the time so far since the first frame. =head2 accum_diff() Returns the total time difference between timestamps and filtered timestamps. C is added to each frame's timestamp before they are passed to the C callback. =head1 AUTHOR Shawn M Moore, C =head1 CAVEATS =over 4 =item * Ttyrecs are frame-based. If you are trying to modify a string that is broken across multiple frames, it will not work. Say you have a ttyrec that prints "foo" in frame one and "bar" in frame two, both with the same timestamp. In a ttyrec player, it might look like these are one frame (with data "foobar"), but it's not. There is no easy, complete way to add arbitrary substitutions; you would have to write (or reuse) a terminal emulator. =item * If you modify the data block, weird things could happen. This is especially true of escape-code-littered ttyrecs (such as those of NetHack). For best results, pretend the data block is an executable file; changes are OK as long as you do not change the length of the file. It really depends on the ttyrec though. =item * If you modify the timestamp of a frame so that it is not in sequence with other frames, the behavior is undefined (it is up to the client program). C will not reorder the frames for you. =item * bzip2 support is transparent, mostly. Unfortunately L is rather slow. I took a lengthy (~4 hours), bzipped ttyrec and ran a simple script on it, depending on the built-in bzip2 decompression. This took nearly four minutes. Using bunzip2 then the same script took about four seconds. So when you can, do explicit bzip2 decompression. Or better yet, help out the guys working on IO::Uncompress::Bunzip2. :) =back =head1 COPYRIGHT & LICENSE Copyright 2006-2009 Shawn M Moore, all rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. =cut Term-TtyRec-Plus-0.09/inc/Module/000755 000765 000024 00000000000 11725440200 017123 5ustar00sartakstaff000000 000000 Term-TtyRec-Plus-0.09/inc/Module/AutoInstall.pm000644 000765 000024 00000054231 11725440153 021734 0ustar00sartakstaff000000 000000 #line 1 package Module::AutoInstall; use strict; use Cwd (); use ExtUtils::MakeMaker (); use vars qw{$VERSION}; BEGIN { $VERSION = '1.03'; } # special map on pre-defined feature sets my %FeatureMap = ( '' => 'Core Features', # XXX: deprecated '-core' => 'Core Features', ); # various lexical flags my ( @Missing, @Existing, %DisabledTests, $UnderCPAN, $HasCPANPLUS ); my ( $Config, $CheckOnly, $SkipInstall, $AcceptDefault, $TestOnly, $AllDeps ); my ( $PostambleActions, $PostambleUsed ); # See if it's a testing or non-interactive session _accept_default( $ENV{AUTOMATED_TESTING} or ! -t STDIN ); _init(); sub _accept_default { $AcceptDefault = shift; } sub missing_modules { return @Missing; } sub do_install { __PACKAGE__->install( [ $Config ? ( UNIVERSAL::isa( $Config, 'HASH' ) ? %{$Config} : @{$Config} ) : () ], @Missing, ); } # initialize various flags, and/or perform install sub _init { foreach my $arg ( @ARGV, split( /[\s\t]+/, $ENV{PERL_AUTOINSTALL} || $ENV{PERL_EXTUTILS_AUTOINSTALL} || '' ) ) { if ( $arg =~ /^--config=(.*)$/ ) { $Config = [ split( ',', $1 ) ]; } elsif ( $arg =~ /^--installdeps=(.*)$/ ) { __PACKAGE__->install( $Config, @Missing = split( /,/, $1 ) ); exit 0; } elsif ( $arg =~ /^--default(?:deps)?$/ ) { $AcceptDefault = 1; } elsif ( $arg =~ /^--check(?:deps)?$/ ) { $CheckOnly = 1; } elsif ( $arg =~ /^--skip(?:deps)?$/ ) { $SkipInstall = 1; } elsif ( $arg =~ /^--test(?:only)?$/ ) { $TestOnly = 1; } elsif ( $arg =~ /^--all(?:deps)?$/ ) { $AllDeps = 1; } } } # overrides MakeMaker's prompt() to automatically accept the default choice sub _prompt { goto &ExtUtils::MakeMaker::prompt unless $AcceptDefault; my ( $prompt, $default ) = @_; my $y = ( $default =~ /^[Yy]/ ); print $prompt, ' [', ( $y ? 'Y' : 'y' ), '/', ( $y ? 'n' : 'N' ), '] '; print "$default\n"; return $default; } # the workhorse sub import { my $class = shift; my @args = @_ or return; my $core_all; print "*** $class version " . $class->VERSION . "\n"; print "*** Checking for Perl dependencies...\n"; my $cwd = Cwd::cwd(); $Config = []; my $maxlen = length( ( sort { length($b) <=> length($a) } grep { /^[^\-]/ } map { ref($_) ? ( ( ref($_) eq 'HASH' ) ? keys(%$_) : @{$_} ) : '' } map { +{@args}->{$_} } grep { /^[^\-]/ or /^-core$/i } keys %{ +{@args} } )[0] ); # We want to know if we're under CPAN early to avoid prompting, but # if we aren't going to try and install anything anyway then skip the # check entirely since we don't want to have to load (and configure) # an old CPAN just for a cosmetic message $UnderCPAN = _check_lock(1) unless $SkipInstall; while ( my ( $feature, $modules ) = splice( @args, 0, 2 ) ) { my ( @required, @tests, @skiptests ); my $default = 1; my $conflict = 0; if ( $feature =~ m/^-(\w+)$/ ) { my $option = lc($1); # check for a newer version of myself _update_to( $modules, @_ ) and return if $option eq 'version'; # sets CPAN configuration options $Config = $modules if $option eq 'config'; # promote every features to core status $core_all = ( $modules =~ /^all$/i ) and next if $option eq 'core'; next unless $option eq 'core'; } print "[" . ( $FeatureMap{ lc($feature) } || $feature ) . "]\n"; $modules = [ %{$modules} ] if UNIVERSAL::isa( $modules, 'HASH' ); unshift @$modules, -default => &{ shift(@$modules) } if ( ref( $modules->[0] ) eq 'CODE' ); # XXX: bugward combatability while ( my ( $mod, $arg ) = splice( @$modules, 0, 2 ) ) { if ( $mod =~ m/^-(\w+)$/ ) { my $option = lc($1); $default = $arg if ( $option eq 'default' ); $conflict = $arg if ( $option eq 'conflict' ); @tests = @{$arg} if ( $option eq 'tests' ); @skiptests = @{$arg} if ( $option eq 'skiptests' ); next; } printf( "- %-${maxlen}s ...", $mod ); if ( $arg and $arg =~ /^\D/ ) { unshift @$modules, $arg; $arg = 0; } # XXX: check for conflicts and uninstalls(!) them. my $cur = _load($mod); if (_version_cmp ($cur, $arg) >= 0) { print "loaded. ($cur" . ( $arg ? " >= $arg" : '' ) . ")\n"; push @Existing, $mod => $arg; $DisabledTests{$_} = 1 for map { glob($_) } @skiptests; } else { if (not defined $cur) # indeed missing { print "missing." . ( $arg ? " (would need $arg)" : '' ) . "\n"; } else { # no need to check $arg as _version_cmp ($cur, undef) would satisfy >= above print "too old. ($cur < $arg)\n"; } push @required, $mod => $arg; } } next unless @required; my $mandatory = ( $feature eq '-core' or $core_all ); if ( !$SkipInstall and ( $CheckOnly or ($mandatory and $UnderCPAN) or $AllDeps or _prompt( qq{==> Auto-install the } . ( @required / 2 ) . ( $mandatory ? ' mandatory' : ' optional' ) . qq{ module(s) from CPAN?}, $default ? 'y' : 'n', ) =~ /^[Yy]/ ) ) { push( @Missing, @required ); $DisabledTests{$_} = 1 for map { glob($_) } @skiptests; } elsif ( !$SkipInstall and $default and $mandatory and _prompt( qq{==> The module(s) are mandatory! Really skip?}, 'n', ) =~ /^[Nn]/ ) { push( @Missing, @required ); $DisabledTests{$_} = 1 for map { glob($_) } @skiptests; } else { $DisabledTests{$_} = 1 for map { glob($_) } @tests; } } if ( @Missing and not( $CheckOnly or $UnderCPAN ) ) { require Config; print "*** Dependencies will be installed the next time you type '$Config::Config{make}'.\n"; # make an educated guess of whether we'll need root permission. print " (You may need to do that as the 'root' user.)\n" if eval '$>'; } print "*** $class configuration finished.\n"; chdir $cwd; # import to main:: no strict 'refs'; *{'main::WriteMakefile'} = \&Write if caller(0) eq 'main'; return (@Existing, @Missing); } sub _running_under { my $thing = shift; print <<"END_MESSAGE"; *** Since we're running under ${thing}, I'll just let it take care of the dependency's installation later. END_MESSAGE return 1; } # Check to see if we are currently running under CPAN.pm and/or CPANPLUS; # if we are, then we simply let it taking care of our dependencies sub _check_lock { return unless @Missing or @_; my $cpan_env = $ENV{PERL5_CPAN_IS_RUNNING}; if ($ENV{PERL5_CPANPLUS_IS_RUNNING}) { return _running_under($cpan_env ? 'CPAN' : 'CPANPLUS'); } require CPAN; if ($CPAN::VERSION > '1.89') { if ($cpan_env) { return _running_under('CPAN'); } return; # CPAN.pm new enough, don't need to check further } # last ditch attempt, this -will- configure CPAN, very sorry _load_cpan(1); # force initialize even though it's already loaded # Find the CPAN lock-file my $lock = MM->catfile( $CPAN::Config->{cpan_home}, ".lock" ); return unless -f $lock; # Check the lock local *LOCK; return unless open(LOCK, $lock); if ( ( $^O eq 'MSWin32' ? _under_cpan() : == getppid() ) and ( $CPAN::Config->{prerequisites_policy} || '' ) ne 'ignore' ) { print <<'END_MESSAGE'; *** Since we're running under CPAN, I'll just let it take care of the dependency's installation later. END_MESSAGE return 1; } close LOCK; return; } sub install { my $class = shift; my $i; # used below to strip leading '-' from config keys my @config = ( map { s/^-// if ++$i; $_ } @{ +shift } ); my ( @modules, @installed ); while ( my ( $pkg, $ver ) = splice( @_, 0, 2 ) ) { # grep out those already installed if ( _version_cmp( _load($pkg), $ver ) >= 0 ) { push @installed, $pkg; } else { push @modules, $pkg, $ver; } } return @installed unless @modules; # nothing to do return @installed if _check_lock(); # defer to the CPAN shell print "*** Installing dependencies...\n"; return unless _connected_to('cpan.org'); my %args = @config; my %failed; local *FAILED; if ( $args{do_once} and open( FAILED, '.#autoinstall.failed' ) ) { while () { chomp; $failed{$_}++ } close FAILED; my @newmod; while ( my ( $k, $v ) = splice( @modules, 0, 2 ) ) { push @newmod, ( $k => $v ) unless $failed{$k}; } @modules = @newmod; } if ( _has_cpanplus() and not $ENV{PERL_AUTOINSTALL_PREFER_CPAN} ) { _install_cpanplus( \@modules, \@config ); } else { _install_cpan( \@modules, \@config ); } print "*** $class installation finished.\n"; # see if we have successfully installed them while ( my ( $pkg, $ver ) = splice( @modules, 0, 2 ) ) { if ( _version_cmp( _load($pkg), $ver ) >= 0 ) { push @installed, $pkg; } elsif ( $args{do_once} and open( FAILED, '>> .#autoinstall.failed' ) ) { print FAILED "$pkg\n"; } } close FAILED if $args{do_once}; return @installed; } sub _install_cpanplus { my @modules = @{ +shift }; my @config = _cpanplus_config( @{ +shift } ); my $installed = 0; require CPANPLUS::Backend; my $cp = CPANPLUS::Backend->new; my $conf = $cp->configure_object; return unless $conf->can('conf') # 0.05x+ with "sudo" support or _can_write($conf->_get_build('base')); # 0.04x # if we're root, set UNINST=1 to avoid trouble unless user asked for it. my $makeflags = $conf->get_conf('makeflags') || ''; if ( UNIVERSAL::isa( $makeflags, 'HASH' ) ) { # 0.03+ uses a hashref here $makeflags->{UNINST} = 1 unless exists $makeflags->{UNINST}; } else { # 0.02 and below uses a scalar $makeflags = join( ' ', split( ' ', $makeflags ), 'UNINST=1' ) if ( $makeflags !~ /\bUNINST\b/ and eval qq{ $> eq '0' } ); } $conf->set_conf( makeflags => $makeflags ); $conf->set_conf( prereqs => 1 ); while ( my ( $key, $val ) = splice( @config, 0, 2 ) ) { $conf->set_conf( $key, $val ); } my $modtree = $cp->module_tree; while ( my ( $pkg, $ver ) = splice( @modules, 0, 2 ) ) { print "*** Installing $pkg...\n"; MY::preinstall( $pkg, $ver ) or next if defined &MY::preinstall; my $success; my $obj = $modtree->{$pkg}; if ( $obj and _version_cmp( $obj->{version}, $ver ) >= 0 ) { my $pathname = $pkg; $pathname =~ s/::/\\W/; foreach my $inc ( grep { m/$pathname.pm/i } keys(%INC) ) { delete $INC{$inc}; } my $rv = $cp->install( modules => [ $obj->{module} ] ); if ( $rv and ( $rv->{ $obj->{module} } or $rv->{ok} ) ) { print "*** $pkg successfully installed.\n"; $success = 1; } else { print "*** $pkg installation cancelled.\n"; $success = 0; } $installed += $success; } else { print << "."; *** Could not find a version $ver or above for $pkg; skipping. . } MY::postinstall( $pkg, $ver, $success ) if defined &MY::postinstall; } return $installed; } sub _cpanplus_config { my @config = (); while ( @_ ) { my ($key, $value) = (shift(), shift()); if ( $key eq 'prerequisites_policy' ) { if ( $value eq 'follow' ) { $value = CPANPLUS::Internals::Constants::PREREQ_INSTALL(); } elsif ( $value eq 'ask' ) { $value = CPANPLUS::Internals::Constants::PREREQ_ASK(); } elsif ( $value eq 'ignore' ) { $value = CPANPLUS::Internals::Constants::PREREQ_IGNORE(); } else { die "*** Cannot convert option $key = '$value' to CPANPLUS version.\n"; } } else { die "*** Cannot convert option $key to CPANPLUS version.\n"; } } return @config; } sub _install_cpan { my @modules = @{ +shift }; my @config = @{ +shift }; my $installed = 0; my %args; _load_cpan(); require Config; if (CPAN->VERSION < 1.80) { # no "sudo" support, probe for writableness return unless _can_write( MM->catfile( $CPAN::Config->{cpan_home}, 'sources' ) ) and _can_write( $Config::Config{sitelib} ); } # if we're root, set UNINST=1 to avoid trouble unless user asked for it. my $makeflags = $CPAN::Config->{make_install_arg} || ''; $CPAN::Config->{make_install_arg} = join( ' ', split( ' ', $makeflags ), 'UNINST=1' ) if ( $makeflags !~ /\bUNINST\b/ and eval qq{ $> eq '0' } ); # don't show start-up info $CPAN::Config->{inhibit_startup_message} = 1; # set additional options while ( my ( $opt, $arg ) = splice( @config, 0, 2 ) ) { ( $args{$opt} = $arg, next ) if $opt =~ /^force$/; # pseudo-option $CPAN::Config->{$opt} = $arg; } local $CPAN::Config->{prerequisites_policy} = 'follow'; while ( my ( $pkg, $ver ) = splice( @modules, 0, 2 ) ) { MY::preinstall( $pkg, $ver ) or next if defined &MY::preinstall; print "*** Installing $pkg...\n"; my $obj = CPAN::Shell->expand( Module => $pkg ); my $success = 0; if ( $obj and _version_cmp( $obj->cpan_version, $ver ) >= 0 ) { my $pathname = $pkg; $pathname =~ s/::/\\W/; foreach my $inc ( grep { m/$pathname.pm/i } keys(%INC) ) { delete $INC{$inc}; } my $rv = $args{force} ? CPAN::Shell->force( install => $pkg ) : CPAN::Shell->install($pkg); $rv ||= eval { $CPAN::META->instance( 'CPAN::Distribution', $obj->cpan_file, ) ->{install} if $CPAN::META; }; if ( $rv eq 'YES' ) { print "*** $pkg successfully installed.\n"; $success = 1; } else { print "*** $pkg installation failed.\n"; $success = 0; } $installed += $success; } else { print << "."; *** Could not find a version $ver or above for $pkg; skipping. . } MY::postinstall( $pkg, $ver, $success ) if defined &MY::postinstall; } return $installed; } sub _has_cpanplus { return ( $HasCPANPLUS = ( $INC{'CPANPLUS/Config.pm'} or _load('CPANPLUS::Shell::Default') ) ); } # make guesses on whether we're under the CPAN installation directory sub _under_cpan { require Cwd; require File::Spec; my $cwd = File::Spec->canonpath( Cwd::cwd() ); my $cpan = File::Spec->canonpath( $CPAN::Config->{cpan_home} ); return ( index( $cwd, $cpan ) > -1 ); } sub _update_to { my $class = __PACKAGE__; my $ver = shift; return if _version_cmp( _load($class), $ver ) >= 0; # no need to upgrade if ( _prompt( "==> A newer version of $class ($ver) is required. Install?", 'y' ) =~ /^[Nn]/ ) { die "*** Please install $class $ver manually.\n"; } print << "."; *** Trying to fetch it from CPAN... . # install ourselves _load($class) and return $class->import(@_) if $class->install( [], $class, $ver ); print << '.'; exit 1; *** Cannot bootstrap myself. :-( Installation terminated. . } # check if we're connected to some host, using inet_aton sub _connected_to { my $site = shift; return ( ( _load('Socket') and Socket::inet_aton($site) ) or _prompt( qq( *** Your host cannot resolve the domain name '$site', which probably means the Internet connections are unavailable. ==> Should we try to install the required module(s) anyway?), 'n' ) =~ /^[Yy]/ ); } # check if a directory is writable; may create it on demand sub _can_write { my $path = shift; mkdir( $path, 0755 ) unless -e $path; return 1 if -w $path; print << "."; *** You are not allowed to write to the directory '$path'; the installation may fail due to insufficient permissions. . if ( eval '$>' and lc(`sudo -V`) =~ /version/ and _prompt( qq( ==> Should we try to re-execute the autoinstall process with 'sudo'?), ((-t STDIN) ? 'y' : 'n') ) =~ /^[Yy]/ ) { # try to bootstrap ourselves from sudo print << "."; *** Trying to re-execute the autoinstall process with 'sudo'... . my $missing = join( ',', @Missing ); my $config = join( ',', UNIVERSAL::isa( $Config, 'HASH' ) ? %{$Config} : @{$Config} ) if $Config; return unless system( 'sudo', $^X, $0, "--config=$config", "--installdeps=$missing" ); print << "."; *** The 'sudo' command exited with error! Resuming... . } return _prompt( qq( ==> Should we try to install the required module(s) anyway?), 'n' ) =~ /^[Yy]/; } # load a module and return the version it reports sub _load { my $mod = pop; # class/instance doesn't matter my $file = $mod; $file =~ s|::|/|g; $file .= '.pm'; local $@; return eval { require $file; $mod->VERSION } || ( $@ ? undef: 0 ); } # Load CPAN.pm and it's configuration sub _load_cpan { return if $CPAN::VERSION and $CPAN::Config and not @_; require CPAN; # CPAN-1.82+ adds CPAN::Config::AUTOLOAD to redirect to # CPAN::HandleConfig->load. CPAN reports that the redirection # is deprecated in a warning printed at the user. # CPAN-1.81 expects CPAN::HandleConfig->load, does not have # $CPAN::HandleConfig::VERSION but cannot handle # CPAN::Config->load # Which "versions expect CPAN::Config->load? if ( $CPAN::HandleConfig::VERSION || CPAN::HandleConfig->can('load') ) { # Newer versions of CPAN have a HandleConfig module CPAN::HandleConfig->load; } else { # Older versions had the load method in Config directly CPAN::Config->load; } } # compare two versions, either use Sort::Versions or plain comparison # return values same as <=> sub _version_cmp { my ( $cur, $min ) = @_; return -1 unless defined $cur; # if 0 keep comparing return 1 unless $min; $cur =~ s/\s+$//; # check for version numbers that are not in decimal format if ( ref($cur) or ref($min) or $cur =~ /v|\..*\./ or $min =~ /v|\..*\./ ) { if ( ( $version::VERSION or defined( _load('version') )) and version->can('new') ) { # use version.pm if it is installed. return version->new($cur) <=> version->new($min); } elsif ( $Sort::Versions::VERSION or defined( _load('Sort::Versions') ) ) { # use Sort::Versions as the sorting algorithm for a.b.c versions return Sort::Versions::versioncmp( $cur, $min ); } warn "Cannot reliably compare non-decimal formatted versions.\n" . "Please install version.pm or Sort::Versions.\n"; } # plain comparison local $^W = 0; # shuts off 'not numeric' bugs return $cur <=> $min; } # nothing; this usage is deprecated. sub main::PREREQ_PM { return {}; } sub _make_args { my %args = @_; $args{PREREQ_PM} = { %{ $args{PREREQ_PM} || {} }, @Existing, @Missing } if $UnderCPAN or $TestOnly; if ( $args{EXE_FILES} and -e 'MANIFEST' ) { require ExtUtils::Manifest; my $manifest = ExtUtils::Manifest::maniread('MANIFEST'); $args{EXE_FILES} = [ grep { exists $manifest->{$_} } @{ $args{EXE_FILES} } ]; } $args{test}{TESTS} ||= 't/*.t'; $args{test}{TESTS} = join( ' ', grep { !exists( $DisabledTests{$_} ) } map { glob($_) } split( /\s+/, $args{test}{TESTS} ) ); my $missing = join( ',', @Missing ); my $config = join( ',', UNIVERSAL::isa( $Config, 'HASH' ) ? %{$Config} : @{$Config} ) if $Config; $PostambleActions = ( ($missing and not $UnderCPAN) ? "\$(PERL) $0 --config=$config --installdeps=$missing" : "\$(NOECHO) \$(NOOP)" ); return %args; } # a wrapper to ExtUtils::MakeMaker::WriteMakefile sub Write { require Carp; Carp::croak "WriteMakefile: Need even number of args" if @_ % 2; if ($CheckOnly) { print << "."; *** Makefile not written in check-only mode. . return; } my %args = _make_args(@_); no strict 'refs'; $PostambleUsed = 0; local *MY::postamble = \&postamble unless defined &MY::postamble; ExtUtils::MakeMaker::WriteMakefile(%args); print << "." unless $PostambleUsed; *** WARNING: Makefile written with customized MY::postamble() without including contents from Module::AutoInstall::postamble() -- auto installation features disabled. Please contact the author. . return 1; } sub postamble { $PostambleUsed = 1; return <<"END_MAKE"; config :: installdeps \t\$(NOECHO) \$(NOOP) checkdeps :: \t\$(PERL) $0 --checkdeps installdeps :: \t$PostambleActions END_MAKE } 1; __END__ #line 1071 Term-TtyRec-Plus-0.09/inc/Module/Install/000755 000765 000024 00000000000 11725440200 020531 5ustar00sartakstaff000000 000000 Term-TtyRec-Plus-0.09/inc/Module/Install.pm000644 000765 000024 00000030135 11725440151 021076 0ustar00sartakstaff000000 000000 #line 1 package Module::Install; # For any maintainers: # The load order for Module::Install is a bit magic. # It goes something like this... # # IF ( host has Module::Install installed, creating author mode ) { # 1. Makefile.PL calls "use inc::Module::Install" # 2. $INC{inc/Module/Install.pm} set to installed version of inc::Module::Install # 3. The installed version of inc::Module::Install loads # 4. inc::Module::Install calls "require Module::Install" # 5. The ./inc/ version of Module::Install loads # } ELSE { # 1. Makefile.PL calls "use inc::Module::Install" # 2. $INC{inc/Module/Install.pm} set to ./inc/ version of Module::Install # 3. The ./inc/ version of Module::Install loads # } use 5.005; use strict 'vars'; use Cwd (); use File::Find (); use File::Path (); use vars qw{$VERSION $MAIN}; BEGIN { # All Module::Install core packages now require synchronised versions. # This will be used to ensure we don't accidentally load old or # different versions of modules. # This is not enforced yet, but will be some time in the next few # releases once we can make sure it won't clash with custom # Module::Install extensions. $VERSION = '1.01'; # Storage for the pseudo-singleton $MAIN = undef; *inc::Module::Install::VERSION = *VERSION; @inc::Module::Install::ISA = __PACKAGE__; } sub import { my $class = shift; my $self = $class->new(@_); my $who = $self->_caller; #------------------------------------------------------------- # all of the following checks should be included in import(), # to allow "eval 'require Module::Install; 1' to test # installation of Module::Install. (RT #51267) #------------------------------------------------------------- # Whether or not inc::Module::Install is actually loaded, the # $INC{inc/Module/Install.pm} is what will still get set as long as # the caller loaded module this in the documented manner. # If not set, the caller may NOT have loaded the bundled version, and thus # they may not have a MI version that works with the Makefile.PL. This would # result in false errors or unexpected behaviour. And we don't want that. my $file = join( '/', 'inc', split /::/, __PACKAGE__ ) . '.pm'; unless ( $INC{$file} ) { die <<"END_DIE" } Please invoke ${\__PACKAGE__} with: use inc::${\__PACKAGE__}; not: use ${\__PACKAGE__}; END_DIE # This reportedly fixes a rare Win32 UTC file time issue, but # as this is a non-cross-platform XS module not in the core, # we shouldn't really depend on it. See RT #24194 for detail. # (Also, this module only supports Perl 5.6 and above). eval "use Win32::UTCFileTime" if $^O eq 'MSWin32' && $] >= 5.006; # If the script that is loading Module::Install is from the future, # then make will detect this and cause it to re-run over and over # again. This is bad. Rather than taking action to touch it (which # is unreliable on some platforms and requires write permissions) # for now we should catch this and refuse to run. if ( -f $0 ) { my $s = (stat($0))[9]; # If the modification time is only slightly in the future, # sleep briefly to remove the problem. my $a = $s - time; if ( $a > 0 and $a < 5 ) { sleep 5 } # Too far in the future, throw an error. my $t = time; if ( $s > $t ) { die <<"END_DIE" } Your installer $0 has a modification time in the future ($s > $t). This is known to create infinite loops in make. Please correct this, then run $0 again. END_DIE } # Build.PL was formerly supported, but no longer is due to excessive # difficulty in implementing every single feature twice. if ( $0 =~ /Build.PL$/i ) { die <<"END_DIE" } Module::Install no longer supports Build.PL. It was impossible to maintain duel backends, and has been deprecated. Please remove all Build.PL files and only use the Makefile.PL installer. END_DIE #------------------------------------------------------------- # To save some more typing in Module::Install installers, every... # use inc::Module::Install # ...also acts as an implicit use strict. $^H |= strict::bits(qw(refs subs vars)); #------------------------------------------------------------- unless ( -f $self->{file} ) { foreach my $key (keys %INC) { delete $INC{$key} if $key =~ /Module\/Install/; } local $^W; require "$self->{path}/$self->{dispatch}.pm"; File::Path::mkpath("$self->{prefix}/$self->{author}"); $self->{admin} = "$self->{name}::$self->{dispatch}"->new( _top => $self ); $self->{admin}->init; @_ = ($class, _self => $self); goto &{"$self->{name}::import"}; } local $^W; *{"${who}::AUTOLOAD"} = $self->autoload; $self->preload; # Unregister loader and worker packages so subdirs can use them again delete $INC{'inc/Module/Install.pm'}; delete $INC{'Module/Install.pm'}; # Save to the singleton $MAIN = $self; return 1; } sub autoload { my $self = shift; my $who = $self->_caller; my $cwd = Cwd::cwd(); my $sym = "${who}::AUTOLOAD"; $sym->{$cwd} = sub { my $pwd = Cwd::cwd(); if ( my $code = $sym->{$pwd} ) { # Delegate back to parent dirs goto &$code unless $cwd eq $pwd; } unless ($$sym =~ s/([^:]+)$//) { # XXX: it looks like we can't retrieve the missing function # via $$sym (usually $main::AUTOLOAD) in this case. # I'm still wondering if we should slurp Makefile.PL to # get some context or not ... my ($package, $file, $line) = caller; die <<"EOT"; Unknown function is found at $file line $line. Execution of $file aborted due to runtime errors. If you're a contributor to a project, you may need to install some Module::Install extensions from CPAN (or other repository). If you're a user of a module, please contact the author. EOT } my $method = $1; if ( uc($method) eq $method ) { # Do nothing return; } elsif ( $method =~ /^_/ and $self->can($method) ) { # Dispatch to the root M:I class return $self->$method(@_); } # Dispatch to the appropriate plugin unshift @_, ( $self, $1 ); goto &{$self->can('call')}; }; } sub preload { my $self = shift; unless ( $self->{extensions} ) { $self->load_extensions( "$self->{prefix}/$self->{path}", $self ); } my @exts = @{$self->{extensions}}; unless ( @exts ) { @exts = $self->{admin}->load_all_extensions; } my %seen; foreach my $obj ( @exts ) { while (my ($method, $glob) = each %{ref($obj) . '::'}) { next unless $obj->can($method); next if $method =~ /^_/; next if $method eq uc($method); $seen{$method}++; } } my $who = $self->_caller; foreach my $name ( sort keys %seen ) { local $^W; *{"${who}::$name"} = sub { ${"${who}::AUTOLOAD"} = "${who}::$name"; goto &{"${who}::AUTOLOAD"}; }; } } sub new { my ($class, %args) = @_; delete $INC{'FindBin.pm'}; { # to suppress the redefine warning local $SIG{__WARN__} = sub {}; require FindBin; } # ignore the prefix on extension modules built from top level. my $base_path = Cwd::abs_path($FindBin::Bin); unless ( Cwd::abs_path(Cwd::cwd()) eq $base_path ) { delete $args{prefix}; } return $args{_self} if $args{_self}; $args{dispatch} ||= 'Admin'; $args{prefix} ||= 'inc'; $args{author} ||= ($^O eq 'VMS' ? '_author' : '.author'); $args{bundle} ||= 'inc/BUNDLES'; $args{base} ||= $base_path; $class =~ s/^\Q$args{prefix}\E:://; $args{name} ||= $class; $args{version} ||= $class->VERSION; unless ( $args{path} ) { $args{path} = $args{name}; $args{path} =~ s!::!/!g; } $args{file} ||= "$args{base}/$args{prefix}/$args{path}.pm"; $args{wrote} = 0; bless( \%args, $class ); } sub call { my ($self, $method) = @_; my $obj = $self->load($method) or return; splice(@_, 0, 2, $obj); goto &{$obj->can($method)}; } sub load { my ($self, $method) = @_; $self->load_extensions( "$self->{prefix}/$self->{path}", $self ) unless $self->{extensions}; foreach my $obj (@{$self->{extensions}}) { return $obj if $obj->can($method); } my $admin = $self->{admin} or die <<"END_DIE"; The '$method' method does not exist in the '$self->{prefix}' path! Please remove the '$self->{prefix}' directory and run $0 again to load it. END_DIE my $obj = $admin->load($method, 1); push @{$self->{extensions}}, $obj; $obj; } sub load_extensions { my ($self, $path, $top) = @_; my $should_reload = 0; unless ( grep { ! ref $_ and lc $_ eq lc $self->{prefix} } @INC ) { unshift @INC, $self->{prefix}; $should_reload = 1; } foreach my $rv ( $self->find_extensions($path) ) { my ($file, $pkg) = @{$rv}; next if $self->{pathnames}{$pkg}; local $@; my $new = eval { local $^W; require $file; $pkg->can('new') }; unless ( $new ) { warn $@ if $@; next; } $self->{pathnames}{$pkg} = $should_reload ? delete $INC{$file} : $INC{$file}; push @{$self->{extensions}}, &{$new}($pkg, _top => $top ); } $self->{extensions} ||= []; } sub find_extensions { my ($self, $path) = @_; my @found; File::Find::find( sub { my $file = $File::Find::name; return unless $file =~ m!^\Q$path\E/(.+)\.pm\Z!is; my $subpath = $1; return if lc($subpath) eq lc($self->{dispatch}); $file = "$self->{path}/$subpath.pm"; my $pkg = "$self->{name}::$subpath"; $pkg =~ s!/!::!g; # If we have a mixed-case package name, assume case has been preserved # correctly. Otherwise, root through the file to locate the case-preserved # version of the package name. if ( $subpath eq lc($subpath) || $subpath eq uc($subpath) ) { my $content = Module::Install::_read($subpath . '.pm'); my $in_pod = 0; foreach ( split //, $content ) { $in_pod = 1 if /^=\w/; $in_pod = 0 if /^=cut/; next if ($in_pod || /^=cut/); # skip pod text next if /^\s*#/; # and comments if ( m/^\s*package\s+($pkg)\s*;/i ) { $pkg = $1; last; } } } push @found, [ $file, $pkg ]; }, $path ) if -d $path; @found; } ##################################################################### # Common Utility Functions sub _caller { my $depth = 0; my $call = caller($depth); while ( $call eq __PACKAGE__ ) { $depth++; $call = caller($depth); } return $call; } # Done in evals to avoid confusing Perl::MinimumVersion eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@; sub _read { local *FH; open( FH, '<', $_[0] ) or die "open($_[0]): $!"; my $string = do { local $/; }; close FH or die "close($_[0]): $!"; return $string; } END_NEW sub _read { local *FH; open( FH, "< $_[0]" ) or die "open($_[0]): $!"; my $string = do { local $/; }; close FH or die "close($_[0]): $!"; return $string; } END_OLD sub _readperl { my $string = Module::Install::_read($_[0]); $string =~ s/(?:\015{1,2}\012|\015|\012)/\n/sg; $string =~ s/(\n)\n*__(?:DATA|END)__\b.*\z/$1/s; $string =~ s/\n\n=\w+.+?\n\n=cut\b.+?\n+/\n\n/sg; return $string; } sub _readpod { my $string = Module::Install::_read($_[0]); $string =~ s/(?:\015{1,2}\012|\015|\012)/\n/sg; return $string if $_[0] =~ /\.pod\z/; $string =~ s/(^|\n=cut\b.+?\n+)[^=\s].+?\n(\n=\w+|\z)/$1$2/sg; $string =~ s/\n*=pod\b[^\n]*\n+/\n\n/sg; $string =~ s/\n*=cut\b[^\n]*\n+/\n\n/sg; $string =~ s/^\n+//s; return $string; } # Done in evals to avoid confusing Perl::MinimumVersion eval( $] >= 5.006 ? <<'END_NEW' : <<'END_OLD' ); die $@ if $@; sub _write { local *FH; open( FH, '>', $_[0] ) or die "open($_[0]): $!"; foreach ( 1 .. $#_ ) { print FH $_[$_] or die "print($_[0]): $!"; } close FH or die "close($_[0]): $!"; } END_NEW sub _write { local *FH; open( FH, "> $_[0]" ) or die "open($_[0]): $!"; foreach ( 1 .. $#_ ) { print FH $_[$_] or die "print($_[0]): $!"; } close FH or die "close($_[0]): $!"; } END_OLD # _version is for processing module versions (eg, 1.03_05) not # Perl versions (eg, 5.8.1). sub _version ($) { my $s = shift || 0; my $d =()= $s =~ /(\.)/g; if ( $d >= 2 ) { # Normalise multipart versions $s =~ s/(\.)(\d{1,3})/sprintf("$1%03d",$2)/eg; } $s =~ s/^(\d+)\.?//; my $l = $1 || 0; my @v = map { $_ . '0' x (3 - length $_) } $s =~ /(\d{1,3})\D?/g; $l = $l . '.' . join '', @v if @v; return $l + 0; } sub _cmp ($$) { _version($_[0]) <=> _version($_[1]); } # Cloned from Params::Util::_CLASS sub _CLASS ($) { ( defined $_[0] and ! ref $_[0] and $_[0] =~ m/^[^\W\d]\w*(?:::\w+)*\z/s ) ? $_[0] : undef; } 1; # Copyright 2008 - 2011 Adam Kennedy. Term-TtyRec-Plus-0.09/inc/Module/Install/AutoInstall.pm000644 000765 000024 00000003632 11725440153 023341 0ustar00sartakstaff000000 000000 #line 1 package Module::Install::AutoInstall; use strict; use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.01'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } sub AutoInstall { $_[0] } sub run { my $self = shift; $self->auto_install_now(@_); } sub write { my $self = shift; $self->auto_install(@_); } sub auto_install { my $self = shift; return if $self->{done}++; # Flatten array of arrays into a single array my @core = map @$_, map @$_, grep ref, $self->build_requires, $self->requires; my @config = @_; # We'll need Module::AutoInstall $self->include('Module::AutoInstall'); require Module::AutoInstall; my @features_require = Module::AutoInstall->import( (@config ? (-config => \@config) : ()), (@core ? (-core => \@core) : ()), $self->features, ); my %seen; my @requires = map @$_, map @$_, grep ref, $self->requires; while (my ($mod, $ver) = splice(@requires, 0, 2)) { $seen{$mod}{$ver}++; } my @build_requires = map @$_, map @$_, grep ref, $self->build_requires; while (my ($mod, $ver) = splice(@build_requires, 0, 2)) { $seen{$mod}{$ver}++; } my @configure_requires = map @$_, map @$_, grep ref, $self->configure_requires; while (my ($mod, $ver) = splice(@configure_requires, 0, 2)) { $seen{$mod}{$ver}++; } my @deduped; while (my ($mod, $ver) = splice(@features_require, 0, 2)) { push @deduped, $mod => $ver unless $seen{$mod}{$ver}++; } $self->requires(@deduped); $self->makemaker_args( Module::AutoInstall::_make_args() ); my $class = ref($self); $self->postamble( "# --- $class section:\n" . Module::AutoInstall::postamble() ); } sub auto_install_now { my $self = shift; $self->auto_install(@_); Module::AutoInstall::do_install(); } 1; Term-TtyRec-Plus-0.09/inc/Module/Install/Base.pm000644 000765 000024 00000002147 11725440152 021753 0ustar00sartakstaff000000 000000 #line 1 package Module::Install::Base; use strict 'vars'; use vars qw{$VERSION}; BEGIN { $VERSION = '1.01'; } # Suspend handler for "redefined" warnings BEGIN { my $w = $SIG{__WARN__}; $SIG{__WARN__} = sub { $w }; } #line 42 sub new { my $class = shift; unless ( defined &{"${class}::call"} ) { *{"${class}::call"} = sub { shift->_top->call(@_) }; } unless ( defined &{"${class}::load"} ) { *{"${class}::load"} = sub { shift->_top->load(@_) }; } bless { @_ }, $class; } #line 61 sub AUTOLOAD { local $@; my $func = eval { shift->_top->autoload } or return; goto &$func; } #line 75 sub _top { $_[0]->{_top}; } #line 90 sub admin { $_[0]->_top->{admin} or Module::Install::Base::FakeAdmin->new; } #line 106 sub is_admin { ! $_[0]->admin->isa('Module::Install::Base::FakeAdmin'); } sub DESTROY {} package Module::Install::Base::FakeAdmin; use vars qw{$VERSION}; BEGIN { $VERSION = $Module::Install::Base::VERSION; } my $fake; sub new { $fake ||= bless(\@_, $_[0]); } sub AUTOLOAD {} sub DESTROY {} # Restore warning handler BEGIN { $SIG{__WARN__} = $SIG{__WARN__}->(); } 1; #line 159 Term-TtyRec-Plus-0.09/inc/Module/Install/Can.pm000644 000765 000024 00000003333 11725440152 021600 0ustar00sartakstaff000000 000000 #line 1 package Module::Install::Can; use strict; use Config (); use File::Spec (); use ExtUtils::MakeMaker (); use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.01'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } # check if we can load some module ### Upgrade this to not have to load the module if possible sub can_use { my ($self, $mod, $ver) = @_; $mod =~ s{::|\\}{/}g; $mod .= '.pm' unless $mod =~ /\.pm$/i; my $pkg = $mod; $pkg =~ s{/}{::}g; $pkg =~ s{\.pm$}{}i; local $@; eval { require $mod; $pkg->VERSION($ver || 0); 1 }; } # check if we can run some command sub can_run { my ($self, $cmd) = @_; my $_cmd = $cmd; return $_cmd if (-x $_cmd or $_cmd = MM->maybe_command($_cmd)); for my $dir ((split /$Config::Config{path_sep}/, $ENV{PATH}), '.') { next if $dir eq ''; my $abs = File::Spec->catfile($dir, $_[1]); return $abs if (-x $abs or $abs = MM->maybe_command($abs)); } return; } # can we locate a (the) C compiler sub can_cc { my $self = shift; my @chunks = split(/ /, $Config::Config{cc}) or return; # $Config{cc} may contain args; try to find out the program part while (@chunks) { return $self->can_run("@chunks") || (pop(@chunks), next); } return; } # Fix Cygwin bug on maybe_command(); if ( $^O eq 'cygwin' ) { require ExtUtils::MM_Cygwin; require ExtUtils::MM_Win32; if ( ! defined(&ExtUtils::MM_Cygwin::maybe_command) ) { *ExtUtils::MM_Cygwin::maybe_command = sub { my ($self, $file) = @_; if ($file =~ m{^/cygdrive/}i and ExtUtils::MM_Win32->can('maybe_command')) { ExtUtils::MM_Win32->maybe_command($file); } else { ExtUtils::MM_Unix->maybe_command($file); } } } } 1; __END__ #line 156 Term-TtyRec-Plus-0.09/inc/Module/Install/Fetch.pm000644 000765 000024 00000004627 11725440153 022140 0ustar00sartakstaff000000 000000 #line 1 package Module::Install::Fetch; use strict; use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.01'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } sub get_file { my ($self, %args) = @_; my ($scheme, $host, $path, $file) = $args{url} =~ m|^(\w+)://([^/]+)(.+)/(.+)| or return; if ( $scheme eq 'http' and ! eval { require LWP::Simple; 1 } ) { $args{url} = $args{ftp_url} or (warn("LWP support unavailable!\n"), return); ($scheme, $host, $path, $file) = $args{url} =~ m|^(\w+)://([^/]+)(.+)/(.+)| or return; } $|++; print "Fetching '$file' from $host... "; unless (eval { require Socket; Socket::inet_aton($host) }) { warn "'$host' resolve failed!\n"; return; } return unless $scheme eq 'ftp' or $scheme eq 'http'; require Cwd; my $dir = Cwd::getcwd(); chdir $args{local_dir} or return if exists $args{local_dir}; if (eval { require LWP::Simple; 1 }) { LWP::Simple::mirror($args{url}, $file); } elsif (eval { require Net::FTP; 1 }) { eval { # use Net::FTP to get past firewall my $ftp = Net::FTP->new($host, Passive => 1, Timeout => 600); $ftp->login("anonymous", 'anonymous@example.com'); $ftp->cwd($path); $ftp->binary; $ftp->get($file) or (warn("$!\n"), return); $ftp->quit; } } elsif (my $ftp = $self->can_run('ftp')) { eval { # no Net::FTP, fallback to ftp.exe require FileHandle; my $fh = FileHandle->new; local $SIG{CHLD} = 'IGNORE'; unless ($fh->open("|$ftp -n")) { warn "Couldn't open ftp: $!\n"; chdir $dir; return; } my @dialog = split(/\n/, <<"END_FTP"); open $host user anonymous anonymous\@example.com cd $path binary get $file $file quit END_FTP foreach (@dialog) { $fh->print("$_\n") } $fh->close; } } else { warn "No working 'ftp' program available!\n"; chdir $dir; return; } unless (-f $file) { warn "Fetching failed: $@\n"; chdir $dir; return; } return if exists $args{size} and -s $file != $args{size}; system($args{run}) if exists $args{run}; unlink($file) if $args{remove}; print(((!exists $args{check_for} or -e $args{check_for}) ? "done!" : "failed! ($!)"), "\n"); chdir $dir; return !$?; } 1; Term-TtyRec-Plus-0.09/inc/Module/Install/GithubMeta.pm000644 000765 000024 00000002175 11725440152 023133 0ustar00sartakstaff000000 000000 #line 1 package Module::Install::GithubMeta; use strict; use warnings; use Cwd; use base qw(Module::Install::Base); use vars qw($VERSION); $VERSION = '0.12'; sub githubmeta { my $self = shift; return unless $Module::Install::AUTHOR; return unless _under_git(); return unless $self->can_run('git'); return unless my ($git_url) = `git remote show -n origin` =~ /URL: (.*)$/m; return unless $git_url =~ /github\.com/; # Not a Github repository my $http_url = $git_url; $git_url =~ s![\w\-]+\@([^:]+):!git://$1/!; $http_url =~ s![\w\-]+\@([^:]+):!http://$1/!; $http_url =~ s!\.git$!/tree!; $self->repository( { type => 'git', url => $git_url, web => $http_url, }, ); $self->homepage( $http_url ) unless $self->homepage(); return 1; } sub _under_git { return 1 if -e '.git'; my $cwd = getcwd; my $last = $cwd; my $found = 0; while (1) { chdir '..' or last; my $current = getcwd; last if $last eq $current; $last = $current; if ( -e '.git' ) { $found = 1; last; } } chdir $cwd; return $found; } 'Github'; __END__ #line 114 Term-TtyRec-Plus-0.09/inc/Module/Install/Include.pm000644 000765 000024 00000001015 11725440153 022456 0ustar00sartakstaff000000 000000 #line 1 package Module::Install::Include; use strict; use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.01'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } sub include { shift()->admin->include(@_); } sub include_deps { shift()->admin->include_deps(@_); } sub auto_include { shift()->admin->auto_include(@_); } sub auto_include_deps { shift()->admin->auto_include_deps(@_); } sub auto_include_dependent_dists { shift()->admin->auto_include_dependent_dists(@_); } 1; Term-TtyRec-Plus-0.09/inc/Module/Install/Makefile.pm000644 000765 000024 00000027032 11725440152 022616 0ustar00sartakstaff000000 000000 #line 1 package Module::Install::Makefile; use strict 'vars'; use ExtUtils::MakeMaker (); use Module::Install::Base (); use Fcntl qw/:flock :seek/; use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.01'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } sub Makefile { $_[0] } my %seen = (); sub prompt { shift; # Infinite loop protection my @c = caller(); if ( ++$seen{"$c[1]|$c[2]|$_[0]"} > 3 ) { die "Caught an potential prompt infinite loop ($c[1]|$c[2]|$_[0])"; } # In automated testing or non-interactive session, always use defaults if ( ($ENV{AUTOMATED_TESTING} or -! -t STDIN) and ! $ENV{PERL_MM_USE_DEFAULT} ) { local $ENV{PERL_MM_USE_DEFAULT} = 1; goto &ExtUtils::MakeMaker::prompt; } else { goto &ExtUtils::MakeMaker::prompt; } } # Store a cleaned up version of the MakeMaker version, # since we need to behave differently in a variety of # ways based on the MM version. my $makemaker = eval $ExtUtils::MakeMaker::VERSION; # If we are passed a param, do a "newer than" comparison. # Otherwise, just return the MakeMaker version. sub makemaker { ( @_ < 2 or $makemaker >= eval($_[1]) ) ? $makemaker : 0 } # Ripped from ExtUtils::MakeMaker 6.56, and slightly modified # as we only need to know here whether the attribute is an array # or a hash or something else (which may or may not be appendable). my %makemaker_argtype = ( C => 'ARRAY', CONFIG => 'ARRAY', # CONFIGURE => 'CODE', # ignore DIR => 'ARRAY', DL_FUNCS => 'HASH', DL_VARS => 'ARRAY', EXCLUDE_EXT => 'ARRAY', EXE_FILES => 'ARRAY', FUNCLIST => 'ARRAY', H => 'ARRAY', IMPORTS => 'HASH', INCLUDE_EXT => 'ARRAY', LIBS => 'ARRAY', # ignore '' MAN1PODS => 'HASH', MAN3PODS => 'HASH', META_ADD => 'HASH', META_MERGE => 'HASH', PL_FILES => 'HASH', PM => 'HASH', PMLIBDIRS => 'ARRAY', PMLIBPARENTDIRS => 'ARRAY', PREREQ_PM => 'HASH', CONFIGURE_REQUIRES => 'HASH', SKIP => 'ARRAY', TYPEMAPS => 'ARRAY', XS => 'HASH', # VERSION => ['version',''], # ignore # _KEEP_AFTER_FLUSH => '', clean => 'HASH', depend => 'HASH', dist => 'HASH', dynamic_lib=> 'HASH', linkext => 'HASH', macro => 'HASH', postamble => 'HASH', realclean => 'HASH', test => 'HASH', tool_autosplit => 'HASH', # special cases where you can use makemaker_append CCFLAGS => 'APPENDABLE', DEFINE => 'APPENDABLE', INC => 'APPENDABLE', LDDLFLAGS => 'APPENDABLE', LDFROM => 'APPENDABLE', ); sub makemaker_args { my ($self, %new_args) = @_; my $args = ( $self->{makemaker_args} ||= {} ); foreach my $key (keys %new_args) { if ($makemaker_argtype{$key}) { if ($makemaker_argtype{$key} eq 'ARRAY') { $args->{$key} = [] unless defined $args->{$key}; unless (ref $args->{$key} eq 'ARRAY') { $args->{$key} = [$args->{$key}] } push @{$args->{$key}}, ref $new_args{$key} eq 'ARRAY' ? @{$new_args{$key}} : $new_args{$key}; } elsif ($makemaker_argtype{$key} eq 'HASH') { $args->{$key} = {} unless defined $args->{$key}; foreach my $skey (keys %{ $new_args{$key} }) { $args->{$key}{$skey} = $new_args{$key}{$skey}; } } elsif ($makemaker_argtype{$key} eq 'APPENDABLE') { $self->makemaker_append($key => $new_args{$key}); } } else { if (defined $args->{$key}) { warn qq{MakeMaker attribute "$key" is overriden; use "makemaker_append" to append values\n}; } $args->{$key} = $new_args{$key}; } } return $args; } # For mm args that take multiple space-seperated args, # append an argument to the current list. sub makemaker_append { my $self = shift; my $name = shift; my $args = $self->makemaker_args; $args->{$name} = defined $args->{$name} ? join( ' ', $args->{$name}, @_ ) : join( ' ', @_ ); } sub build_subdirs { my $self = shift; my $subdirs = $self->makemaker_args->{DIR} ||= []; for my $subdir (@_) { push @$subdirs, $subdir; } } sub clean_files { my $self = shift; my $clean = $self->makemaker_args->{clean} ||= {}; %$clean = ( %$clean, FILES => join ' ', grep { length $_ } ($clean->{FILES} || (), @_), ); } sub realclean_files { my $self = shift; my $realclean = $self->makemaker_args->{realclean} ||= {}; %$realclean = ( %$realclean, FILES => join ' ', grep { length $_ } ($realclean->{FILES} || (), @_), ); } sub libs { my $self = shift; my $libs = ref $_[0] ? shift : [ shift ]; $self->makemaker_args( LIBS => $libs ); } sub inc { my $self = shift; $self->makemaker_args( INC => shift ); } sub _wanted_t { } sub tests_recursive { my $self = shift; my $dir = shift || 't'; unless ( -d $dir ) { die "tests_recursive dir '$dir' does not exist"; } my %tests = map { $_ => 1 } split / /, ($self->tests || ''); require File::Find; File::Find::find( sub { /\.t$/ and -f $_ and $tests{"$File::Find::dir/*.t"} = 1 }, $dir ); $self->tests( join ' ', sort keys %tests ); } sub write { my $self = shift; die "&Makefile->write() takes no arguments\n" if @_; # Check the current Perl version my $perl_version = $self->perl_version; if ( $perl_version ) { eval "use $perl_version; 1" or die "ERROR: perl: Version $] is installed, " . "but we need version >= $perl_version"; } # Make sure we have a new enough MakeMaker require ExtUtils::MakeMaker; if ( $perl_version and $self->_cmp($perl_version, '5.006') >= 0 ) { # MakeMaker can complain about module versions that include # an underscore, even though its own version may contain one! # Hence the funny regexp to get rid of it. See RT #35800 # for details. my $v = $ExtUtils::MakeMaker::VERSION =~ /^(\d+\.\d+)/; $self->build_requires( 'ExtUtils::MakeMaker' => $v ); $self->configure_requires( 'ExtUtils::MakeMaker' => $v ); } else { # Allow legacy-compatibility with 5.005 by depending on the # most recent EU:MM that supported 5.005. $self->build_requires( 'ExtUtils::MakeMaker' => 6.42 ); $self->configure_requires( 'ExtUtils::MakeMaker' => 6.42 ); } # Generate the MakeMaker params my $args = $self->makemaker_args; $args->{DISTNAME} = $self->name; $args->{NAME} = $self->module_name || $self->name; $args->{NAME} =~ s/-/::/g; $args->{VERSION} = $self->version or die <<'EOT'; ERROR: Can't determine distribution version. Please specify it explicitly via 'version' in Makefile.PL, or set a valid $VERSION in a module, and provide its file path via 'version_from' (or 'all_from' if you prefer) in Makefile.PL. EOT $DB::single = 1; if ( $self->tests ) { my @tests = split ' ', $self->tests; my %seen; $args->{test} = { TESTS => (join ' ', grep {!$seen{$_}++} @tests), }; } elsif ( $Module::Install::ExtraTests::use_extratests ) { # Module::Install::ExtraTests doesn't set $self->tests and does its own tests via harness. # So, just ignore our xt tests here. } elsif ( -d 'xt' and ($Module::Install::AUTHOR or $ENV{RELEASE_TESTING}) ) { $args->{test} = { TESTS => join( ' ', map { "$_/*.t" } grep { -d $_ } qw{ t xt } ), }; } if ( $] >= 5.005 ) { $args->{ABSTRACT} = $self->abstract; $args->{AUTHOR} = join ', ', @{$self->author || []}; } if ( $self->makemaker(6.10) ) { $args->{NO_META} = 1; #$args->{NO_MYMETA} = 1; } if ( $self->makemaker(6.17) and $self->sign ) { $args->{SIGN} = 1; } unless ( $self->is_admin ) { delete $args->{SIGN}; } if ( $self->makemaker(6.31) and $self->license ) { $args->{LICENSE} = $self->license; } my $prereq = ($args->{PREREQ_PM} ||= {}); %$prereq = ( %$prereq, map { @$_ } # flatten [module => version] map { @$_ } grep $_, ($self->requires) ); # Remove any reference to perl, PREREQ_PM doesn't support it delete $args->{PREREQ_PM}->{perl}; # Merge both kinds of requires into BUILD_REQUIRES my $build_prereq = ($args->{BUILD_REQUIRES} ||= {}); %$build_prereq = ( %$build_prereq, map { @$_ } # flatten [module => version] map { @$_ } grep $_, ($self->configure_requires, $self->build_requires) ); # Remove any reference to perl, BUILD_REQUIRES doesn't support it delete $args->{BUILD_REQUIRES}->{perl}; # Delete bundled dists from prereq_pm, add it to Makefile DIR my $subdirs = ($args->{DIR} || []); if ($self->bundles) { my %processed; foreach my $bundle (@{ $self->bundles }) { my ($mod_name, $dist_dir) = @$bundle; delete $prereq->{$mod_name}; $dist_dir = File::Basename::basename($dist_dir); # dir for building this module if (not exists $processed{$dist_dir}) { if (-d $dist_dir) { # List as sub-directory to be processed by make push @$subdirs, $dist_dir; } # Else do nothing: the module is already present on the system $processed{$dist_dir} = undef; } } } unless ( $self->makemaker('6.55_03') ) { %$prereq = (%$prereq,%$build_prereq); delete $args->{BUILD_REQUIRES}; } if ( my $perl_version = $self->perl_version ) { eval "use $perl_version; 1" or die "ERROR: perl: Version $] is installed, " . "but we need version >= $perl_version"; if ( $self->makemaker(6.48) ) { $args->{MIN_PERL_VERSION} = $perl_version; } } if ($self->installdirs) { warn qq{old INSTALLDIRS (probably set by makemaker_args) is overriden by installdirs\n} if $args->{INSTALLDIRS}; $args->{INSTALLDIRS} = $self->installdirs; } my %args = map { ( $_ => $args->{$_} ) } grep {defined($args->{$_} ) } keys %$args; my $user_preop = delete $args{dist}->{PREOP}; if ( my $preop = $self->admin->preop($user_preop) ) { foreach my $key ( keys %$preop ) { $args{dist}->{$key} = $preop->{$key}; } } my $mm = ExtUtils::MakeMaker::WriteMakefile(%args); $self->fix_up_makefile($mm->{FIRST_MAKEFILE} || 'Makefile'); } sub fix_up_makefile { my $self = shift; my $makefile_name = shift; my $top_class = ref($self->_top) || ''; my $top_version = $self->_top->VERSION || ''; my $preamble = $self->preamble ? "# Preamble by $top_class $top_version\n" . $self->preamble : ''; my $postamble = "# Postamble by $top_class $top_version\n" . ($self->postamble || ''); local *MAKEFILE; open MAKEFILE, "+< $makefile_name" or die "fix_up_makefile: Couldn't open $makefile_name: $!"; eval { flock MAKEFILE, LOCK_EX }; my $makefile = do { local $/; }; $makefile =~ s/\b(test_harness\(\$\(TEST_VERBOSE\), )/$1'inc', /; $makefile =~ s/( -I\$\(INST_ARCHLIB\))/ -Iinc$1/g; $makefile =~ s/( "-I\$\(INST_LIB\)")/ "-Iinc"$1/g; $makefile =~ s/^(FULLPERL = .*)/$1 "-Iinc"/m; $makefile =~ s/^(PERL = .*)/$1 "-Iinc"/m; # Module::Install will never be used to build the Core Perl # Sometimes PERL_LIB and PERL_ARCHLIB get written anyway, which breaks # PREFIX/PERL5LIB, and thus, install_share. Blank them if they exist $makefile =~ s/^PERL_LIB = .+/PERL_LIB =/m; #$makefile =~ s/^PERL_ARCHLIB = .+/PERL_ARCHLIB =/m; # Perl 5.005 mentions PERL_LIB explicitly, so we have to remove that as well. $makefile =~ s/(\"?)-I\$\(PERL_LIB\)\1//g; # XXX - This is currently unused; not sure if it breaks other MM-users # $makefile =~ s/^pm_to_blib\s+:\s+/pm_to_blib :: /mg; seek MAKEFILE, 0, SEEK_SET; truncate MAKEFILE, 0; print MAKEFILE "$preamble$makefile$postamble" or die $!; close MAKEFILE or die $!; 1; } sub preamble { my ($self, $text) = @_; $self->{preamble} = $text . $self->{preamble} if defined $text; $self->{preamble}; } sub postamble { my ($self, $text) = @_; $self->{postamble} ||= $self->admin->postamble; $self->{postamble} .= $text if defined $text; $self->{postamble} } 1; __END__ #line 541 Term-TtyRec-Plus-0.09/inc/Module/Install/Metadata.pm000644 000765 000024 00000043123 11725440152 022620 0ustar00sartakstaff000000 000000 #line 1 package Module::Install::Metadata; use strict 'vars'; use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.01'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } my @boolean_keys = qw{ sign }; my @scalar_keys = qw{ name module_name abstract version distribution_type tests installdirs }; my @tuple_keys = qw{ configure_requires build_requires requires recommends bundles resources }; my @resource_keys = qw{ homepage bugtracker repository }; my @array_keys = qw{ keywords author }; *authors = \&author; sub Meta { shift } sub Meta_BooleanKeys { @boolean_keys } sub Meta_ScalarKeys { @scalar_keys } sub Meta_TupleKeys { @tuple_keys } sub Meta_ResourceKeys { @resource_keys } sub Meta_ArrayKeys { @array_keys } foreach my $key ( @boolean_keys ) { *$key = sub { my $self = shift; if ( defined wantarray and not @_ ) { return $self->{values}->{$key}; } $self->{values}->{$key} = ( @_ ? $_[0] : 1 ); return $self; }; } foreach my $key ( @scalar_keys ) { *$key = sub { my $self = shift; return $self->{values}->{$key} if defined wantarray and !@_; $self->{values}->{$key} = shift; return $self; }; } foreach my $key ( @array_keys ) { *$key = sub { my $self = shift; return $self->{values}->{$key} if defined wantarray and !@_; $self->{values}->{$key} ||= []; push @{$self->{values}->{$key}}, @_; return $self; }; } foreach my $key ( @resource_keys ) { *$key = sub { my $self = shift; unless ( @_ ) { return () unless $self->{values}->{resources}; return map { $_->[1] } grep { $_->[0] eq $key } @{ $self->{values}->{resources} }; } return $self->{values}->{resources}->{$key} unless @_; my $uri = shift or die( "Did not provide a value to $key()" ); $self->resources( $key => $uri ); return 1; }; } foreach my $key ( grep { $_ ne "resources" } @tuple_keys) { *$key = sub { my $self = shift; return $self->{values}->{$key} unless @_; my @added; while ( @_ ) { my $module = shift or last; my $version = shift || 0; push @added, [ $module, $version ]; } push @{ $self->{values}->{$key} }, @added; return map {@$_} @added; }; } # Resource handling my %lc_resource = map { $_ => 1 } qw{ homepage license bugtracker repository }; sub resources { my $self = shift; while ( @_ ) { my $name = shift or last; my $value = shift or next; if ( $name eq lc $name and ! $lc_resource{$name} ) { die("Unsupported reserved lowercase resource '$name'"); } $self->{values}->{resources} ||= []; push @{ $self->{values}->{resources} }, [ $name, $value ]; } $self->{values}->{resources}; } # Aliases for build_requires that will have alternative # meanings in some future version of META.yml. sub test_requires { shift->build_requires(@_) } sub install_requires { shift->build_requires(@_) } # Aliases for installdirs options sub install_as_core { $_[0]->installdirs('perl') } sub install_as_cpan { $_[0]->installdirs('site') } sub install_as_site { $_[0]->installdirs('site') } sub install_as_vendor { $_[0]->installdirs('vendor') } sub dynamic_config { my $self = shift; unless ( @_ ) { warn "You MUST provide an explicit true/false value to dynamic_config\n"; return $self; } $self->{values}->{dynamic_config} = $_[0] ? 1 : 0; return 1; } sub perl_version { my $self = shift; return $self->{values}->{perl_version} unless @_; my $version = shift or die( "Did not provide a value to perl_version()" ); # Normalize the version $version = $self->_perl_version($version); # We don't support the reall old versions unless ( $version >= 5.005 ) { die "Module::Install only supports 5.005 or newer (use ExtUtils::MakeMaker)\n"; } $self->{values}->{perl_version} = $version; } sub all_from { my ( $self, $file ) = @_; unless ( defined($file) ) { my $name = $self->name or die( "all_from called with no args without setting name() first" ); $file = join('/', 'lib', split(/-/, $name)) . '.pm'; $file =~ s{.*/}{} unless -e $file; unless ( -e $file ) { die("all_from cannot find $file from $name"); } } unless ( -f $file ) { die("The path '$file' does not exist, or is not a file"); } $self->{values}{all_from} = $file; # Some methods pull from POD instead of code. # If there is a matching .pod, use that instead my $pod = $file; $pod =~ s/\.pm$/.pod/i; $pod = $file unless -e $pod; # Pull the different values $self->name_from($file) unless $self->name; $self->version_from($file) unless $self->version; $self->perl_version_from($file) unless $self->perl_version; $self->author_from($pod) unless @{$self->author || []}; $self->license_from($pod) unless $self->license; $self->abstract_from($pod) unless $self->abstract; return 1; } sub provides { my $self = shift; my $provides = ( $self->{values}->{provides} ||= {} ); %$provides = (%$provides, @_) if @_; return $provides; } sub auto_provides { my $self = shift; return $self unless $self->is_admin; unless (-e 'MANIFEST') { warn "Cannot deduce auto_provides without a MANIFEST, skipping\n"; return $self; } # Avoid spurious warnings as we are not checking manifest here. local $SIG{__WARN__} = sub {1}; require ExtUtils::Manifest; local *ExtUtils::Manifest::manicheck = sub { return }; require Module::Build; my $build = Module::Build->new( dist_name => $self->name, dist_version => $self->version, license => $self->license, ); $self->provides( %{ $build->find_dist_packages || {} } ); } sub feature { my $self = shift; my $name = shift; my $features = ( $self->{values}->{features} ||= [] ); my $mods; if ( @_ == 1 and ref( $_[0] ) ) { # The user used ->feature like ->features by passing in the second # argument as a reference. Accomodate for that. $mods = $_[0]; } else { $mods = \@_; } my $count = 0; push @$features, ( $name => [ map { ref($_) ? ( ref($_) eq 'HASH' ) ? %$_ : @$_ : $_ } @$mods ] ); return @$features; } sub features { my $self = shift; while ( my ( $name, $mods ) = splice( @_, 0, 2 ) ) { $self->feature( $name, @$mods ); } return $self->{values}->{features} ? @{ $self->{values}->{features} } : (); } sub no_index { my $self = shift; my $type = shift; push @{ $self->{values}->{no_index}->{$type} }, @_ if $type; return $self->{values}->{no_index}; } sub read { my $self = shift; $self->include_deps( 'YAML::Tiny', 0 ); require YAML::Tiny; my $data = YAML::Tiny::LoadFile('META.yml'); # Call methods explicitly in case user has already set some values. while ( my ( $key, $value ) = each %$data ) { next unless $self->can($key); if ( ref $value eq 'HASH' ) { while ( my ( $module, $version ) = each %$value ) { $self->can($key)->($self, $module => $version ); } } else { $self->can($key)->($self, $value); } } return $self; } sub write { my $self = shift; return $self unless $self->is_admin; $self->admin->write_meta; return $self; } sub version_from { require ExtUtils::MM_Unix; my ( $self, $file ) = @_; $self->version( ExtUtils::MM_Unix->parse_version($file) ); # for version integrity check $self->makemaker_args( VERSION_FROM => $file ); } sub abstract_from { require ExtUtils::MM_Unix; my ( $self, $file ) = @_; $self->abstract( bless( { DISTNAME => $self->name }, 'ExtUtils::MM_Unix' )->parse_abstract($file) ); } # Add both distribution and module name sub name_from { my ($self, $file) = @_; if ( Module::Install::_read($file) =~ m/ ^ \s* package \s* ([\w:]+) \s* ; /ixms ) { my ($name, $module_name) = ($1, $1); $name =~ s{::}{-}g; $self->name($name); unless ( $self->module_name ) { $self->module_name($module_name); } } else { die("Cannot determine name from $file\n"); } } sub _extract_perl_version { if ( $_[0] =~ m/ ^\s* (?:use|require) \s* v? ([\d_\.]+) \s* ; /ixms ) { my $perl_version = $1; $perl_version =~ s{_}{}g; return $perl_version; } else { return; } } sub perl_version_from { my $self = shift; my $perl_version=_extract_perl_version(Module::Install::_read($_[0])); if ($perl_version) { $self->perl_version($perl_version); } else { warn "Cannot determine perl version info from $_[0]\n"; return; } } sub author_from { my $self = shift; my $content = Module::Install::_read($_[0]); if ($content =~ m/ =head \d \s+ (?:authors?)\b \s* ([^\n]*) | =head \d \s+ (?:licen[cs]e|licensing|copyright|legal)\b \s* .*? copyright .*? \d\d\d[\d.]+ \s* (?:\bby\b)? \s* ([^\n]*) /ixms) { my $author = $1 || $2; # XXX: ugly but should work anyway... if (eval "require Pod::Escapes; 1") { # Pod::Escapes has a mapping table. # It's in core of perl >= 5.9.3, and should be installed # as one of the Pod::Simple's prereqs, which is a prereq # of Pod::Text 3.x (see also below). $author =~ s{ E<( (\d+) | ([A-Za-z]+) )> } { defined $2 ? chr($2) : defined $Pod::Escapes::Name2character_number{$1} ? chr($Pod::Escapes::Name2character_number{$1}) : do { warn "Unknown escape: E<$1>"; "E<$1>"; }; }gex; } elsif (eval "require Pod::Text; 1" && $Pod::Text::VERSION < 3) { # Pod::Text < 3.0 has yet another mapping table, # though the table name of 2.x and 1.x are different. # (1.x is in core of Perl < 5.6, 2.x is in core of # Perl < 5.9.3) my $mapping = ($Pod::Text::VERSION < 2) ? \%Pod::Text::HTML_Escapes : \%Pod::Text::ESCAPES; $author =~ s{ E<( (\d+) | ([A-Za-z]+) )> } { defined $2 ? chr($2) : defined $mapping->{$1} ? $mapping->{$1} : do { warn "Unknown escape: E<$1>"; "E<$1>"; }; }gex; } else { $author =~ s{E}{<}g; $author =~ s{E}{>}g; } $self->author($author); } else { warn "Cannot determine author info from $_[0]\n"; } } #Stolen from M::B my %license_urls = ( perl => 'http://dev.perl.org/licenses/', apache => 'http://apache.org/licenses/LICENSE-2.0', apache_1_1 => 'http://apache.org/licenses/LICENSE-1.1', artistic => 'http://opensource.org/licenses/artistic-license.php', artistic_2 => 'http://opensource.org/licenses/artistic-license-2.0.php', lgpl => 'http://opensource.org/licenses/lgpl-license.php', lgpl2 => 'http://opensource.org/licenses/lgpl-2.1.php', lgpl3 => 'http://opensource.org/licenses/lgpl-3.0.html', bsd => 'http://opensource.org/licenses/bsd-license.php', gpl => 'http://opensource.org/licenses/gpl-license.php', gpl2 => 'http://opensource.org/licenses/gpl-2.0.php', gpl3 => 'http://opensource.org/licenses/gpl-3.0.html', mit => 'http://opensource.org/licenses/mit-license.php', mozilla => 'http://opensource.org/licenses/mozilla1.1.php', open_source => undef, unrestricted => undef, restrictive => undef, unknown => undef, ); sub license { my $self = shift; return $self->{values}->{license} unless @_; my $license = shift or die( 'Did not provide a value to license()' ); $license = __extract_license($license) || lc $license; $self->{values}->{license} = $license; # Automatically fill in license URLs if ( $license_urls{$license} ) { $self->resources( license => $license_urls{$license} ); } return 1; } sub _extract_license { my $pod = shift; my $matched; return __extract_license( ($matched) = $pod =~ m/ (=head \d \s+ L(?i:ICEN[CS]E|ICENSING)\b.*?) (=head \d.*|=cut.*|)\z /xms ) || __extract_license( ($matched) = $pod =~ m/ (=head \d \s+ (?:C(?i:OPYRIGHTS?)|L(?i:EGAL))\b.*?) (=head \d.*|=cut.*|)\z /xms ); } sub __extract_license { my $license_text = shift or return; my @phrases = ( '(?:under )?the same (?:terms|license) as (?:perl|the perl (?:\d )?programming language)' => 'perl', 1, '(?:under )?the terms of (?:perl|the perl programming language) itself' => 'perl', 1, 'Artistic and GPL' => 'perl', 1, 'GNU general public license' => 'gpl', 1, 'GNU public license' => 'gpl', 1, 'GNU lesser general public license' => 'lgpl', 1, 'GNU lesser public license' => 'lgpl', 1, 'GNU library general public license' => 'lgpl', 1, 'GNU library public license' => 'lgpl', 1, 'GNU Free Documentation license' => 'unrestricted', 1, 'GNU Affero General Public License' => 'open_source', 1, '(?:Free)?BSD license' => 'bsd', 1, 'Artistic license 2\.0' => 'artistic_2', 1, 'Artistic license' => 'artistic', 1, 'Apache (?:Software )?license' => 'apache', 1, 'GPL' => 'gpl', 1, 'LGPL' => 'lgpl', 1, 'BSD' => 'bsd', 1, 'Artistic' => 'artistic', 1, 'MIT' => 'mit', 1, 'Mozilla Public License' => 'mozilla', 1, 'Q Public License' => 'open_source', 1, 'OpenSSL License' => 'unrestricted', 1, 'SSLeay License' => 'unrestricted', 1, 'zlib License' => 'open_source', 1, 'proprietary' => 'proprietary', 0, ); while ( my ($pattern, $license, $osi) = splice(@phrases, 0, 3) ) { $pattern =~ s#\s+#\\s+#gs; if ( $license_text =~ /\b$pattern\b/i ) { return $license; } } return ''; } sub license_from { my $self = shift; if (my $license=_extract_license(Module::Install::_read($_[0]))) { $self->license($license); } else { warn "Cannot determine license info from $_[0]\n"; return 'unknown'; } } sub _extract_bugtracker { my @links = $_[0] =~ m#L<( https?\Q://rt.cpan.org/\E[^>]+| https?\Q://github.com/\E[\w_]+/[\w_]+/issues| https?\Q://code.google.com/p/\E[\w_\-]+/issues/list )>#gx; my %links; @links{@links}=(); @links=keys %links; return @links; } sub bugtracker_from { my $self = shift; my $content = Module::Install::_read($_[0]); my @links = _extract_bugtracker($content); unless ( @links ) { warn "Cannot determine bugtracker info from $_[0]\n"; return 0; } if ( @links > 1 ) { warn "Found more than one bugtracker link in $_[0]\n"; return 0; } # Set the bugtracker bugtracker( $links[0] ); return 1; } sub requires_from { my $self = shift; my $content = Module::Install::_readperl($_[0]); my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+([\d\.]+)/mg; while ( @requires ) { my $module = shift @requires; my $version = shift @requires; $self->requires( $module => $version ); } } sub test_requires_from { my $self = shift; my $content = Module::Install::_readperl($_[0]); my @requires = $content =~ m/^use\s+([^\W\d]\w*(?:::\w+)*)\s+([\d\.]+)/mg; while ( @requires ) { my $module = shift @requires; my $version = shift @requires; $self->test_requires( $module => $version ); } } # Convert triple-part versions (eg, 5.6.1 or 5.8.9) to # numbers (eg, 5.006001 or 5.008009). # Also, convert double-part versions (eg, 5.8) sub _perl_version { my $v = $_[-1]; $v =~ s/^([1-9])\.([1-9]\d?\d?)$/sprintf("%d.%03d",$1,$2)/e; $v =~ s/^([1-9])\.([1-9]\d?\d?)\.(0|[1-9]\d?\d?)$/sprintf("%d.%03d%03d",$1,$2,$3 || 0)/e; $v =~ s/(\.\d\d\d)000$/$1/; $v =~ s/_.+$//; if ( ref($v) ) { # Numify $v = $v + 0; } return $v; } sub add_metadata { my $self = shift; my %hash = @_; for my $key (keys %hash) { warn "add_metadata: $key is not prefixed with 'x_'.\n" . "Use appopriate function to add non-private metadata.\n" unless $key =~ /^x_/; $self->{values}->{$key} = $hash{$key}; } } ###################################################################### # MYMETA Support sub WriteMyMeta { die "WriteMyMeta has been deprecated"; } sub write_mymeta_yaml { my $self = shift; # We need YAML::Tiny to write the MYMETA.yml file unless ( eval { require YAML::Tiny; 1; } ) { return 1; } # Generate the data my $meta = $self->_write_mymeta_data or return 1; # Save as the MYMETA.yml file print "Writing MYMETA.yml\n"; YAML::Tiny::DumpFile('MYMETA.yml', $meta); } sub write_mymeta_json { my $self = shift; # We need JSON to write the MYMETA.json file unless ( eval { require JSON; 1; } ) { return 1; } # Generate the data my $meta = $self->_write_mymeta_data or return 1; # Save as the MYMETA.yml file print "Writing MYMETA.json\n"; Module::Install::_write( 'MYMETA.json', JSON->new->pretty(1)->canonical->encode($meta), ); } sub _write_mymeta_data { my $self = shift; # If there's no existing META.yml there is nothing we can do return undef unless -f 'META.yml'; # We need Parse::CPAN::Meta to load the file unless ( eval { require Parse::CPAN::Meta; 1; } ) { return undef; } # Merge the perl version into the dependencies my $val = $self->Meta->{values}; my $perl = delete $val->{perl_version}; if ( $perl ) { $val->{requires} ||= []; my $requires = $val->{requires}; # Canonize to three-dot version after Perl 5.6 if ( $perl >= 5.006 ) { $perl =~ s{^(\d+)\.(\d\d\d)(\d*)}{join('.', $1, int($2||0), int($3||0))}e } unshift @$requires, [ perl => $perl ]; } # Load the advisory META.yml file my @yaml = Parse::CPAN::Meta::LoadFile('META.yml'); my $meta = $yaml[0]; # Overwrite the non-configure dependency hashs delete $meta->{requires}; delete $meta->{build_requires}; delete $meta->{recommends}; if ( exists $val->{requires} ) { $meta->{requires} = { map { @$_ } @{ $val->{requires} } }; } if ( exists $val->{build_requires} ) { $meta->{build_requires} = { map { @$_ } @{ $val->{build_requires} } }; } return $meta; } 1; Term-TtyRec-Plus-0.09/inc/Module/Install/Scripts.pm000644 000765 000024 00000001011 11725440153 022516 0ustar00sartakstaff000000 000000 #line 1 package Module::Install::Scripts; use strict 'vars'; use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.01'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } sub install_script { my $self = shift; my $args = $self->makemaker_args; my $exe = $args->{EXE_FILES} ||= []; foreach ( @_ ) { if ( -f $_ ) { push @$exe, $_; } elsif ( -d 'script' and -f "script/$_" ) { push @$exe, "script/$_"; } else { die("Cannot find script '$_'"); } } } 1; Term-TtyRec-Plus-0.09/inc/Module/Install/Win32.pm000644 000765 000024 00000003403 11725440153 022000 0ustar00sartakstaff000000 000000 #line 1 package Module::Install::Win32; use strict; use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.01'; @ISA = 'Module::Install::Base'; $ISCORE = 1; } # determine if the user needs nmake, and download it if needed sub check_nmake { my $self = shift; $self->load('can_run'); $self->load('get_file'); require Config; return unless ( $^O eq 'MSWin32' and $Config::Config{make} and $Config::Config{make} =~ /^nmake\b/i and ! $self->can_run('nmake') ); print "The required 'nmake' executable not found, fetching it...\n"; require File::Basename; my $rv = $self->get_file( url => 'http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe', ftp_url => 'ftp://ftp.microsoft.com/Softlib/MSLFILES/Nmake15.exe', local_dir => File::Basename::dirname($^X), size => 51928, run => 'Nmake15.exe /o > nul', check_for => 'Nmake.exe', remove => 1, ); die <<'END_MESSAGE' unless $rv; ------------------------------------------------------------------------------- Since you are using Microsoft Windows, you will need the 'nmake' utility before installation. It's available at: http://download.microsoft.com/download/vc15/Patch/1.52/W95/EN-US/Nmake15.exe or ftp://ftp.microsoft.com/Softlib/MSLFILES/Nmake15.exe Please download the file manually, save it to a directory in %PATH% (e.g. C:\WINDOWS\COMMAND\), then launch the MS-DOS command line shell, "cd" to that directory, and run "Nmake15.exe" from there; that will create the 'nmake.exe' file needed by this module. You may then resume the installation process described in README. ------------------------------------------------------------------------------- END_MESSAGE } 1; Term-TtyRec-Plus-0.09/inc/Module/Install/WriteAll.pm000644 000765 000024 00000002376 11725440153 022631 0ustar00sartakstaff000000 000000 #line 1 package Module::Install::WriteAll; use strict; use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { $VERSION = '1.01'; @ISA = qw{Module::Install::Base}; $ISCORE = 1; } sub WriteAll { my $self = shift; my %args = ( meta => 1, sign => 0, inline => 0, check_nmake => 1, @_, ); $self->sign(1) if $args{sign}; $self->admin->WriteAll(%args) if $self->is_admin; $self->check_nmake if $args{check_nmake}; unless ( $self->makemaker_args->{PL_FILES} ) { # XXX: This still may be a bit over-defensive... unless ($self->makemaker(6.25)) { $self->makemaker_args( PL_FILES => {} ) if -f 'Build.PL'; } } # Until ExtUtils::MakeMaker support MYMETA.yml, make sure # we clean it up properly ourself. $self->realclean_files('MYMETA.yml'); if ( $args{inline} ) { $self->Inline->write; } else { $self->Makefile->write; } # The Makefile write process adds a couple of dependencies, # so write the META.yml files after the Makefile. if ( $args{meta} ) { $self->Meta->write; } # Experimental support for MYMETA if ( $ENV{X_MYMETA} ) { if ( $ENV{X_MYMETA} eq 'JSON' ) { $self->Meta->write_mymeta_json; } else { $self->Meta->write_mymeta_yaml; } } return 1; } 1; Term-TtyRec-Plus-0.09/bin/ttyplay000644 000765 000024 00000004210 11721776532 017343 0ustar00sartakstaff000000 000000 #!/usr/bin/env perl use strict; use warnings; use Term::TtyRec::Plus; use Getopt::Long; sub usage { my ($exit) = @_; my $out = $exit ? \*STDERR : \*STDOUT; print { $out } "$0 [-s ] [-c ] [-n] [-p] \n"; exit($exit); } my ($speed, $clamp, $peek) = (1, undef, 0); GetOptions( 'speed=f' => \$speed, 'clamp=f' => \$clamp, 'peek' => \$peek, 'nowait' => sub { $clamp = 0 }, 'help' => sub { usage(0) }, ) || usage(1); $|++; foreach my $file (@ARGV) { my $ttyrec = Term::TtyRec::Plus->new( infile => $file, (defined($clamp) ? (time_threshold => $clamp) : ()), ); if ($peek) { my $fh = $ttyrec->filehandle; seek $fh, 0, 2; while (1) { seek $fh, 0, 1; my $frame_ref = $ttyrec->next_frame; print $frame_ref->{data} if $frame_ref; select undef, undef, undef, 0.1; } } else { while (my $frame_ref = $ttyrec->next_frame) { select undef, undef, undef, ($frame_ref->{diff} / $speed); print $frame_ref->{data}; } } } __END__ =head1 NAME ttyplay - play back ttyrec files =head1 SYNOPSIS ttyplay [-s ] [-c ] [-n] [-p] =head1 OPTIONS =over 4 =item C<--speed> (C<-s>) Set a multiplier for how fast the ttyrec should be played back (C<-s 2> means twice as fast). =item C<--clamp> (C<-c>) Set the maximum delay between any two frames in the ttyrec. If unset, there is no maximum (the ttyrec will be played as written). =item C<--nowait> (C<-n>) Disable all delays between frames (equivalent to C<-c 0>). =item C<--peek> (C<-p>) "Peek" at a ttyrec that is currently being written. This will seek to the end of the file and display new ttyrec frames as they become available. =back =head1 AUTHOR Jesse Luehrs =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2012 by Jesse Luehrs. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut Term-TtyRec-Plus-0.09/bin/ttytime000644 000765 000024 00000002617 11725437732 017345 0ustar00sartakstaff000000 000000 #!/usr/bin/env perl use strict; use warnings; use Term::TtyRec::Plus; use Getopt::Long; sub usage { my ($exit) = @_; my $out = $exit ? \*STDERR : \*STDOUT; print { $out } "$0 [-c ] \n"; exit($exit); } my $clamp; GetOptions( 'clamp=f' => \$clamp, 'help' => sub { usage(0) }, ) || usage(1); for my $file (@ARGV) { my $ttyrec = Term::TtyRec::Plus->new( infile => $file, (defined($clamp) ? (time_threshold => $clamp) : ()), ); my $time = 0; while (my $frame_ref = $ttyrec->next_frame) { $time += $frame_ref->{diff}; } printf("%7d\t%s\n", int($time), $file); } __END__ =head1 NAME ttytime - calculate length of ttyrec files =head1 SYNOPSIS ttytime [-c ] =head1 DESCRIPTION Outputs the length in seconds of each C file given as input. For instance: $ ttytime *.ttyrec 1234 foo.ttyrec 23425 bar.ttyrec =head1 OPTIONS =over 4 =item C<--clamp> (C<-c>) Set the maximum delay between any two frames in the ttyrec. If unset, there is no maximum. =back =head1 AUTHOR Jesse Luehrs =head1 COPYRIGHT AND LICENSE This software is copyright (c) 2012 by Jesse Luehrs. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. =cut