Tie::Handle::TtyRec - write a ttyrec


Tie-Handle-TtyRec documentation  | view source Contained in the Tie-Handle-TtyRec distribution.

Index


NAME

Top

Tie::Handle::TtyRec - write a ttyrec

SYNOPSIS

Top

    use Tie::Handle::TtyRec;
    my $handle = Tie::Handle::TtyRec->new("foo.ttyrec");
    print $handle "hello", "world";

DESCRIPTION

Top

A ttyrec is a format used for recording terminal sessions. Notably, practically all NetHack games are recorded using ttyrecs. ttyrecs include precise timing data and can be a little fiddly. This module lets you focus on your application, instead of making sure your ttyrec headers are perfect.

The usual way to use this module is through its new interface. It will clobber the file you decide to record to. A way of allowing you to instead append will be included in a future version.

Each argument to print will be put into its own ttyrec frame, using the current time. So, the following will create three separate frames,

    print $handle "foo", "bar", "baz";

The following will create only one frame,

    print $handle "foo" . "bar" . "baz";

SEE ALSO

Top

Term::TtyRec, Term::TtyRec::Plus

AUTHOR

Top

Shawn M Moore, sartak@gmail.com

COPYRIGHT AND LICENSE

Top


Tie-Handle-TtyRec documentation  | view source Contained in the Tie-Handle-TtyRec distribution.