make reader detect xterm/screen better

This commit is contained in:
Stefan `Sec` Zehl 2012-05-06 23:45:21 +02:00
parent 08bddb7b5f
commit 9970d42909
1 changed files with 6 additions and 2 deletions

View File

@ -70,8 +70,12 @@ my $hispaddr = sockaddr_in($port, $hisiaddr);
###send(SOCKET, 0, 0, $hispaddr); ###send(SOCKET, 0, 0, $hispaddr);
my $xterm=0; my $xterm=$ENV{TERM}eq"xterm"?1:0;
my $screen=1; my $screen=$ENV{TERM}eq"screen"?1:0;
if (! -t 1){
$xterm=$screen=0;
};
my $crcerr=0; my $crcerr=0;
my $errors=0; my $errors=0;