Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 36.938.111 Times

Term::TtyRec::Plus 0.02

  Date Added: May 14, 2010  |  Visits: 1.037

Term::TtyRec::Plus

Report Broken Link
Printer Friendly Version


Product Homepage
Download (81 downloads)



Term::TtyRec::Plus is a Perl module to read a ttyrec. SYNOPSIS Term::TtyRec::Plus is a module that lets you read ttyrec files. The related module, Term::TtyRec is designed more for simple interactions. Term::TtyRec::Plus gives you more information and, using a callback, lets you munge the data block and timestamp. It will do all the subtle work of making sure timing is kept consistent, and of rebuilding each frame header. use Term::TtyRec::Plus; my $ttyrec = Term::TtyRec::Plus->new(); while ($frame_ref = $ttyrec->next_frame()) { # do stuff with $frame_ref, e.g. $total_time += $frame_ref->{diff}; } CONSTRUCTOR AND STARTUP new() Creates and returns a new Term::TtyRec::Plus object. my $ttyrec = Term::TtyRec::Plus->new(); Parameters Here are the parameters that > recognizes. infile The input filename. A value of "-", which is the default, or undef, means STDIN. filehandle The input filehandle. By default this is undef; if you have already opened the ttyrec then you can pass its filehandle to the constructor. If both filehandle and infile are defined, filehandle is used. time_threshold The maximum difference between two frames, in seconds. If undef, which is the default, there is no enforced maximum. The second most common value would be 10, which some ttyrec utilities (such as timettyrec) use. frame_filter A callback, run for each frame before returning the frame to the user of Term::TtyRec::Plus. This callback receives three arguments: the frame text, the timestamp, and the timestamp of the previous frame. All three arguments are passed as scalar references. The previous frames timestamp is undef for the first frame. The return value is not currently looked at. If you modify the timestamp, the module will make sure that change is noted and respected in further frame timestamps. Modifications to the previous frames timestamp are currently ignored. sub halve_frame_time_and_stumblify { my ($data_ref, $time_ref, $prev_ref) = @_; $$time_ref = $$prev_ref + ($$time_ref - $$prev_ref) / 2 if defined $$prev_ref; $$data_ref =~ s/Eidolos/Stumbly/g; } State In addition to passing arguments, you can modify Term::TtyRec::Pluss initial state, if you want to. This could be useful if you are chaining multiple ttyrecs together; you could pass a different initial frame. Support for such chaining might be added in a future version. frame The initial frame number. Default 0. prev_timestamp The previous frames timestamp. Default undef. accum_diff The accumulated difference of all frames seen so far; see the section on diffed_timestamp in next_frame()s return value. Default 0. relative_time The time passed since the first frame. Default 0..

Requirements: No special requirements
Platforms: Linux
Keyword: Default Frame Libraries Module Perl Module Programming Ref Termttyrecplus Time Timestamp Ttyrec
Users rating: 0/10

License: Freeware Size: 57.34 KB
USER REVIEWS
More Reviews or Write Review


TERM::TTYREC::PLUS RELATED
Modules  -  2 News Column Module 2.0
This is a hacked version of default phpnuke News module. It will allow you to show your phpnuke news in two separate columns. The module is an updated version of ZulNews module. It is compatiable with phpnuke 7.9+. It might work with older or...
30.72 KB  
Libraries  -  Regexp::Common::time 0.01
Regexp::Common::time Perl module contains date and time regexps. SYNOPSIS use Regexp::Common qw(time); # Piecemeal, Time::Format-like patterns $RE{time}{tf}{-pat => pattern} # Piecemeal, strftime-like patterns $RE{time}{strftime}{-pat =>...
35.84 KB  
Modules  -  Manufacturers Multilanguage With Description 1.1
This contribution will give you an alternative to the default osCommerce manufacturers module by providing multilanguage support and an extra description field. It can be used as a full replacement whether your shop is multilanguage or not but for...
 
Modules  -  Dual Zones Shipping 1.0
It is just a modified and duplicated version of the default shipping zones module. It is setup to allow Airmail and Economy Airmail. Icons have also been included.Just replace your current zones module with the included files, and activate your...
 
Utilities  -  Hampshire Libraries 1.35
Hampshire Libraries App Return your library books on time. Never pay a fine again Track the books you have on loan. With a quick glance see when you need to return or renew. Requirements: iOS 3.0 or later. Compatible with...
1.8 MB  
Business  -  Andrew's Time Card Script 0.4.0
A perl script to replace old time card systems with a terminal. It will have a GTK front end.
1.2 KB  
Games  -  2048 Cats and Kittens Edition 1.0
2048 Cats and Kittens Edition is an upgraded version of 2048. More fun to play and a very addictive puzzle game. Besides default 2048 play mode, you can also play in Time Rush mode: swipe as fast as you can and try to achieve the highest score...
9.4 MB  
Business  -  Quick Week Number - Free Week Calendar App 2.2
Features: + Current week is displayed as Icon Badge and automatically updated. Even user does not need to open the application. + Current week number loaded by default. + Find Week Number without limitation of years. + Life time...
1.8 MB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  Inline-API 0.44
Inline-API is a Perl module that teach you how to bind a programming language to Perl using Inline.pm. SYNOPSIS #!/usr/bin/perl use Inline Foo; say_it(foo); # Use Foo to print "Hello, Foo" __Foo__ foo-sub say_it { foo-my $foo =...
91.14 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
3.88 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB