The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Term::TtyRec::Player - playbacks ttyrec data

SYNOPSIS

use Term::TtyRec::Player;
use FileHandle;

# $handle is any IO::* object
my $handle = FileHandle->new('file.tty');
my $player = Term::TtyRec::Player->new($handle);

# options can be set as hashref
my $player = Term::TtyRec::Player->new($handle, {
    speed => 1, nowait => undef,
});

DESCRIPTION

Term::TtyRec::Player playbacks ttyrec recorded data. See pttyplay and Term::TtyRec for details about ttyrec.

METHODS

new
$player = Term::TtyRec::Player->new($handle, \%attr);

constructs new Term::TtyRec::Player instance.

play
$player->play();

Plays recorded data on your terminal.

peek
$player->peek();

Plays live-recoded data to your terminal. This method implements ttyplay -p option.

AUTHOR

Tatsuhiko Miyagawa <miyagawa@bulknews.net>

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

Term::TtyRec, pttyplay, http://namazu.org/~satoru/ttyrec/