App-Termcast
view release on metacpan or search on metacpan
lib/App/Termcast.pm view on Meta::CPAN
}
$App::Termcast::VERSION = '0.13';
use Moose;
# ABSTRACT: broadcast your terminal sessions for remote viewing
with 'MooseX::Getopt::Dashes';
use IO::Select;
use IO::Socket::INET;
use JSON;
use Scalar::Util 'weaken';
use Term::Filter::Callback;
use Term::ReadKey;
use Try::Tiny;
has host => (
is => 'rw',
isa => 'Str',
default => 'noway.ratry.ru',
lib/App/Termcast.pm view on Meta::CPAN
default => 0,
);
has _term => (
is => 'ro',
does => 'Term::Filter',
lazy => 1,
predicate => '_has_term',
default => sub {
my $_self = shift;
weaken(my $self = $_self);
# XXX using ::Callback for now because we need to be able to
# instantiate App::Termcast objects without initializing the terminal
# (in case of just calling write_to_termcast). This should
# eventually be deprecated in favor of moving the termcast interaction
# code out to an App::Termcast::Writer module or something, and
# this module should be a simple wrapper that combines that module
# with Term::Filter.
Term::Filter::Callback->new(
callbacks => {
setup => sub {
( run in 1.041 second using v1.01-cache-2.11-cpan-65fba6d93b7 )