
App::Textcast - Light weight text casting

use App::Textcast qw(record_textcast play_textcast) ; record_textcast(COMMAND => 'bash') ; play_textcast(TEXTCAST_DIRECTORY => $input_directory) ;

What's a textcast?
It's a screencast of a terminal session. The idea is to record the terminal session and replay it in another terminal without loosing resolution, as screencasts do, nor using much disk space due to conversion from text to video. The terminal session can run a shell or any other program.
Why textcasts?

See record_textcast and play_textcast subbroutines.

Two commands, record_textcast and play_textcast, are installed on your computer when you install this module. Use them to record and replay your text casts.
The textcast is a serie of files recorded in a directory. Tar/gzip the files before you send them. the compression ratio averages 95%.

Records the terminal output of a command. The output is stored as a set of files in a directory. The directory is later passed as argument to play_textcast for display.
use App::Textcast 'record_textcast' ;
record_textcast
(
COMMAND => 'bash',
OUTPUT_DIRECTORY => shift @ARGV,
COMPRESS => $compress,
COLUMNS => $columns,
ROWS => $rows,
) ;
Arguments
The arguments are named, order is not important.
Returns - Nothing
Exceptions
See scripts/record_textcast.
Check that the given output directory does not exist. If $output_directory is not defined, a directory name is generated.
Arguments
Returns - The directory where the textcast is recorded.
Exceptions
Loads, checks, and initiates the textcast replay. Displays information after the textcast replay.
use App::Textcast 'play_textcast' ;
play_textcast
(
TEXTCAST_DIRECTORY => $input_directory,
OVERLAY_DIRECTORY => $overlay_directory,
DISPLAY_STATUS => $display_status,
START_PAUSED => $start_paused,
) ;
Arguments
Returns - Nothing
Exceptions
Plays a screencast.
Arguments
Returns - A list containing
Exceptions - None
Displays information about the textcast replay.
print_play_information
(
$total_play_time,
$total_frames,
$played_frames,
\@skipped_frames,
) ;
Arguments
Returns - Nothing
Exceptions - None
Displays a status on the status line.
Arguments
Returns - Nothing
Exceptions - None
Create an ANSI command to position the cursor on the terminal.
Arguments
Returns - A string containing the ANSI command.
Exceptions - None
See xxx.
Loads the screencast meta-data.
Arguments
Returns - The screencast meta-data, see the index file for format information.
Exceptions
Arguments
Returns - a vt_process handle
Exceptions
Arguments
Returns - Nothing
Exceptions - None
Arguments
Returns - $vt, $terminal_change_buffer
Exceptions - None
Callback for OUTPUT events - for Term::VT102.
Arguments
Returns - Nothing
Exceptions - Nothing
See Term::VT102.
Callback for ROWCHANGE events. This just sets a time value for the changed row using the private data as a hash reference - the time represents the earliest that row was changed since the last screen update.
Arguments
Returns - Nothing
Exceptions - Nothing
See Term::VT102.
Callback to trigger a full-screen repaint.
Arguments
Returns - Nothing
Exceptions - None
See Term::VT102.
Creqtes a child process to run a command in.
Arguments
Returns - Nothing
Exceptions - Can not fork to run sub process
See xxx.
Arguments
Returns - Nothing
Exceptions - Error redirecting streams
Check the sub process output.
Arguments
Returns - $eof, $screen_data, $cursor_x, $cursor_y
Exceptions - None

None so far.

Nadim ibn hamouda el Khemir
CPAN ID: NH
mailto: nadim@cpan.org

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

You can find documentation for this module with the perldoc command.
perldoc App::Textcast
You can also look for information at:
Please report any bugs or feature requests to L <bug-app-textcast@rt.cpan.org>.
We will be notified, and then you'll automatically be notified of progress on your bug as we make changes.

screen (1), script(1), aewan, vte(1), evilvte(1).