diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-09-23 18:06:20 +0000 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2005-09-23 18:06:20 +0000 |
commit | e23caf74fc13586956595bb2546a59584ea4fe5f (patch) | |
tree | d1d0a2a24f83aea9c9db2a1ef8bef0e9725b8c07 /test/run | |
parent | 3f715ddbd69b01dd5df3ae2d5ecfa3e0a5f2f2c1 (diff) | |
download | quilt-e23caf74fc13586956595bb2546a59584ea4fe5f.tar.gz |
- test/run: Do not depend on Term::ReadKey.
Diffstat (limited to 'test/run')
-rwxr-xr-x | test/run | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -13,7 +13,6 @@ use strict; use FileHandle; use Getopt::Std; use POSIX qw(isatty setuid); -use Term::ReadKey; use vars qw($opt_l $opt_v); no warnings qw(taint); @@ -33,7 +32,7 @@ my ($prog, $in, $out) = ([], [], []); my $prog_line; my ($tests, $failed) = (0,0); my $lineno; -my $width=((GetTerminalSize)[0] >> 1); +my $width = ($ENV{COLUMNS} || 80) >> 1; for (;;) { my $line = <>; $lineno++; |