mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 09:49:18 +02: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:
parent
cc4cacdb5e
commit
648c83ea03
1 changed files with 1 additions and 1 deletions
|
@ -498,7 +498,7 @@ is_supported_args(Args) ->
|
||||||
|
|
||||||
%% Commands are Bold
|
%% Commands are Bold
|
||||||
-define(B1, "\e[1m").
|
-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).
|
-define(C(S), case ShCode of true -> [?B1, S, ?B2]; false -> S end).
|
||||||
|
|
||||||
%% Arguments are Dim
|
%% Arguments are Dim
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue