Skip to content

Commit

Permalink
Merge pull request #51 from davebx/krona_headless
Browse files Browse the repository at this point in the history
Call tput only if $TERM is set.
  • Loading branch information
ondovb authored May 5, 2017
2 parents c5708c4 + 84d1521 commit bc6808b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion KronaTools/lib/KronaTools.pm
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,15 @@ my $fileTaxonomy = 'taxonomy.tab';
my $fileTaxByAcc = 'all.accession2taxid.sorted';
my $memberLimitDataset = 10000;
my $memberLimitTotal = 100000;
my $columns = `tput cols`;
my $columns;
if (defined($ENV{TERM}))
{
$columns = `tput cols`;
}
else
{
$columns = 80;
}
our $minEVal = -450;


Expand Down

0 comments on commit bc6808b

Please sign in to comment.