#1130466 ssh-tools: ssh-ping -n does not fully remove ANSI sequences

#1130466#5
Date:
2026-03-12 10:09:30 UTC
From:
To:
Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

   I was using sshping to feed into a network monitoring script and
   needed no color.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

     Using the flag -n removes the color but did not remove the RESET
     sequence ESC[0m

   * What was the outcome of this action?

     ugly escape sequence on non ANSI terminals

   * What outcome did you expect instead?

     all color changing ANSI sequences to be removed.

     I did end up fixing the problem, but idk how to submit a patch file
     line 284 needs this change

     <     unset -v RED GREEN YELLOW BLUE MAGENTA CYAN WHITE BOLD
     ---
     >     unset -v RED GREEN YELLOW BLUE MAGENTA CYAN WHITE BOLD RESET

*** End of the template - remove these template lines ***

#1130466#10
Date:
2026-03-13 16:36:03 UTC
From:
To:
Hi Jeffrey,

thanks for the report.

I will forward the patch to upstream (myself) to fix it :-)

#1130466#15
Date:
2026-03-13 16:36:03 UTC
From:
To:
Hi Jeffrey,

thanks for the report.

I will forward the patch to upstream (myself) to fix it :-)