summaryrefslogtreecommitdiff
path: root/dselect/setup
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2022-03-20 12:06:50 +0100
committerJulian Andres Klode <jak@debian.org>2025-05-19 16:02:55 +0000
commit372d90ec8a395b77f2aec94174054021231e695d (patch)
tree316e78bcec3b9cd1644e848bc92135cb85d263dc /dselect/setup
parentd8f4038b45507620f7696fecd8527345f1f384db (diff)
dselect: Use Term::ANSIColor instead of forking setterm
Diffstat (limited to 'dselect/setup')
-rwxr-xr-xdselect/setup6
1 files 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');