Fix ejabberdctl output formatting

ECMA-48 SGR sequence ESC [21m is actually 'set double underline' but was
incorrectly implemented as 'set normal intensity' in Linux prior to
4.17.

The correct sequence for 'set normal intensity' is ESC [22m, which fixes
output formatting of 'ejabberdctl' and 'ejabberdctl help' on macos.
This commit is contained in:
Stu Tomlinson 2023-01-19 09:38:03 +00:00
parent cc4cacdb5e
commit 4ebc53cc80
1 changed files with 1 additions and 1 deletions

View File

@ -498,7 +498,7 @@ is_supported_args(Args) ->
%% Commands are Bold
-define(B1, "\e[1m").
-define(B2, "\e[21m").
-define(B2, "\e[22m").
-define(C(S), case ShCode of true -> [?B1, S, ?B2]; false -> S end).
%% Arguments are Dim