Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 19 lines (12 sloc) 297 Bytes
#! /usr/bin/env php
<?php
require_once('AnsiAsciiControlParser.php');
$parser = new AnsiAsciiControlParser();
$f = fopen('php://stdin', 'r');
$parser = new AnsiAsciiControlParser();
while (false !== ($s = fgets($f))) {
$parser->parse($s);
print($parser->getTextString());
}
fclose($f);
?>