Parent Directory | Revision Log
import upstream from http://encryptio.com/code/jsttyplay
1 | #!/usr/bin/perl |
2 | use strict; |
3 | use warnings; |
4 | |
5 | use Test::More tests => 5; |
6 | use Term::Emulator::Parser; |
7 | |
8 | my $term = Term::Emulator::Parser->new; |
9 | |
10 | is($term->width, 80); |
11 | is($term->height, 24); |
12 | my $str = join "\n", map { " " x 80 } 1 .. 24; |
13 | is($term->as_string, $str); |
14 | |
15 | $term = Term::Emulator::Parser->new( width => 20, height => 10 ); |
16 | is($term->width, 20); |
17 | is($term->height, 10); |
18 |
ViewVC Help | |
Powered by ViewVC 1.1.26 |