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

App::Ttyrec - record interactive terminal sessions

VERSION

version 0.02

SYNOPSIS

  use App::Ttyrec;

  App::Ttyrec->new(
      ttyrec_file => 'nethack.ttyrec',
  )->run('nethack');

DESCRIPTION

This module handles setting up and running a terminal session which records its output to a ttyrec file. These files can then be later read via software such as Term::TtyRec::Plus.

ATTRIBUTES

ttyrec_file

The name of the file to write to (which can be a named pipe). Defaults to ttyrecord.

append

Whether or not to append to the ttyrec file. Defaults to false.

ttyrec

The Tie::Handle::TtyRec instance used to actually write the ttyrec file. Defaults to an instance created based on the values of ttyrec_file and append.

METHODS

run(@cmd)

Run the command specified by @cmd, as though via system. The output that this command writes to the terminal will also be recorded in the file specified by ttyrec_file.

BUGS

No known bugs.

Please report any bugs to GitHub Issues at https://github.com/doy/app-ttyrec/issues.

SEE ALSO

Term::TtyRec::Plus

Tie::Handle::TtyRec

https://0xcc.net/ttyrec/index.html.en

SUPPORT

You can find this documentation for this module with the perldoc command.

    perldoc App::Ttyrec

You can also look for information at:

AUTHOR

Jesse Luehrs <[email protected]>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2014 by Jesse Luehrs.

This is free software, licensed under:

  The MIT (X11) License