Fixed reset escaping

This commit is contained in:
Emmanuel BENOîT 2022-10-22 09:58:50 +02:00
parent 2b1a4ad324
commit e32b7f57c2

View file

@ -717,6 +717,7 @@ sub main
load_config; load_config;
chop( $COLUMNS = `tput cols` ); chop( $COLUMNS = `tput cols` );
$RESET = $CONFIG{cfg_sgr0_reset} ? tput_sequence( 'sgr0' ) : "\033[0m"; $RESET = $CONFIG{cfg_sgr0_reset} ? tput_sequence( 'sgr0' ) : "\033[0m";
$RESET = '\\[' . $RESET . '\\]';
%TLEN = compute_trans_lengths; %TLEN = compute_trans_lengths;
my $pg = gen_term_title; my $pg = gen_term_title;
my $ps1 = $pg . gen_top_line; my $ps1 = $pg . gen_top_line;