25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Fix ejabberdctl output formatting (#3979)

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 10:18:59 +00:00 committed by GitHub
parent cc4cacdb5e
commit 648c83ea03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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