]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.0.1834: Some problems with xxd coloring v9.0.1834
authorK.Takata <kentkt@csc.jp>
Fri, 1 Sep 2023 16:41:04 +0000 (18:41 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 1 Sep 2023 16:41:04 +0000 (18:41 +0200)
commitf6fc255e8d9c46a0e51e03f16a508833d309dee6
tree9e6cb2070e026e591599655074f68909866de030
parentda16a1b471aa717f58909cc6531cb6dbbff14d22
patch 9.0.1834: Some problems with xxd coloring

Problem:  Some problems with xxd coloring
Solution: Fix the following problems:

* Support colored output on Windows.
  SetConsoleMode() is required to enable ANSI color sequences.
* Support "NO_COLOR" environment variable.
  If "NO_COLOR" is defined and not empty, colored output should be
  disabled.
  See https://no-color.org/
* "-R" should only accept "always", "never" or "auto" as the parameter.
* Adjust help and documentation. "-R" cannot omit the parameter. Remove
  surrounding brackets.

Related #12131
closes: #12997
closes: #12991
closes: #12986

Signed-off-by: Christian Brabandt <cb@256bit.org>
Co-authored-by: K.Takata <kentkt@csc.jp>
runtime/doc/xxd.1
src/version.c
src/xxd/xxd.c