From 97cf0fc234b7c4dd4ee5005994a2e55b5ecfd4e5 Mon Sep 17 00:00:00 2001 From: Yorhel Date: Sun, 21 Apr 2024 10:46:13 +0200 Subject: [PATCH] Change default color scheme back to "off", fix some mdoc lints --- ncdu.1 | 38 ++++++++++++++++++-------------------- src/main.c | 1 - src/util.c | 2 +- 3 files changed, 19 insertions(+), 22 deletions(-) diff --git a/ncdu.1 b/ncdu.1 index 6990604..5f5c839 100644 --- a/ncdu.1 +++ b/ncdu.1 @@ -1,6 +1,6 @@ -.\" SPDX-FileCopyrightText: Yoran Heling +.\" SPDX-FileCopyrightText: Yorhel .\" SPDX-License-Identifier: MIT -.Dd January 21, 2024 +.Dd April 21, 2024 .Dt NCDU 1 .Os .Sh NAME @@ -18,7 +18,7 @@ .Op Fl \-include\-caches , \-exclude\-caches .Op Fl L , \-follow\-symlinks , \-no\-follow\-symlinks .Op Fl \-include\-kernfs , \-exclude\-kernfs -.Op Fl \-exclude\-firmlinks, \-follow\-firmlinks +.Op Fl \-exclude\-firmlinks , \-follow\-firmlinks .Op Fl 0 , 1 , 2 .Op Fl q , \-slow\-ui\-updates , \-fast\-ui\-updates .Op Fl \-enable\-shell , \-disable\-shell @@ -146,7 +146,7 @@ The exact counting behavior of this flag is subject to change in the future. .Pp The complete list of currently known pseudo filesystems is: binfmt, bpf, cgroup, cgroup2, debug, devpts, proc, pstore, security, selinux, sys, trace. -.Op Fl \-exclude\-firmlinks, \-follow\-firmlinks +.It Fl \-exclude\-firmlinks , \-follow\-firmlinks (MacOS only) Exclude or follow firmlinks. .El .Ss Interface Options @@ -276,10 +276,7 @@ for a variation of the color scheme that also works in terminals with a light background. .Pp The default is -.Ar dark\-bg -unless the -.Ev NO_COLOR -environment variable is set. +.Ar off . .El .Sh CONFIGURATION .Nm @@ -452,9 +449,20 @@ the local system without any network latency, and .Nm does not keep the entire directory structure in memory when exporting, so this won't consume much memory on the remote system. +.Sh SEE ALSO +.Xr du 1 , +.Xr tree 1 . +.Pp +.Nm +has a website: +.Lk https://dev.yorhel.nl/ncdu +.Sh AUTHORS +Written by +.An Yorhel Aq Mt projects@yorhel.nl .Sh BUGS -Directory hard links are not supported. They are not detected as being hard -links, and will thus get scanned and counted multiple times. +Directory hard links are not supported. +They are not detected as being hard links, and will thus get scanned and +counted multiple times. .Pp Some minor glitches may appear when displaying filenames that contain multibyte or multicolumn characters. @@ -478,13 +486,3 @@ to get stuck in an infinite loop and eventually run out of memory. Please report any other bugs you may find at the bug tracker, which can be found on the web site at .Lk https://dev.yorhel.nl/ncdu -.Sh SEE ALSO -.Xr du 1 , -.Xr tree 1 . -.Pp -.Nm -has a website: -.Lk https://dev.yorhel.nl/ncdu -.Sh AUTHORS -Written by -.An Yorhel Aq Mt projects@yorhel.nl diff --git a/src/main.c b/src/main.c index 6ddae96..705f2c0 100644 --- a/src/main.c +++ b/src/main.c @@ -473,7 +473,6 @@ void close_nc(void) { int main(int argc, char **argv) { read_locale(); - uic_theme = getenv("NO_COLOR") ? 0 : 2; config_load(argc, argv); argv_parse(argc, argv); diff --git a/src/util.c b/src/util.c index 4979c26..9029b3f 100644 --- a/src/util.c +++ b/src/util.c @@ -34,7 +34,7 @@ #include #endif -int uic_theme; +int uic_theme = 0; int winrows, wincols; int subwinr, subwinc; static char thou_sep;