From 372d90ec8a395b77f2aec94174054021231e695d Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Sun, 20 Mar 2022 12:06:50 +0100 Subject: dselect: Use Term::ANSIColor instead of forking setterm --- dselect/setup | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dselect/setup b/dselect/setup index ac910d1c1..3d4bc6309 100755 --- a/dselect/setup +++ b/dselect/setup @@ -20,14 +20,16 @@ use warnings; #printf STDERR "DEBUG: Arguments $ARGV[0];$ARGV[1];$ARGV[2];\n"; +use Term::ANSIColor; + # Handle the arguments my $vardir=$ARGV[0]; my $method=$ARGV[1]; my $option=$ARGV[2]; my $config_file = '/etc/apt/sources.list'; -my $boldon=`setterm -bold on`; -my $boldoff=`setterm -bold off`; +my $boldon = color('bold'); +my $boldoff = color('reset'); my @known_types = ('deb'); my @known_access = ('https', 'http', 'ftp', 'file'); -- cgit v1.2.3-70-g09d2