From: Karel Zak Date: Tue, 11 Mar 2014 10:49:52 +0000 (+0100) Subject: cfdisk: fix colors initialization X-Git-Tag: v2.25-rc1~446 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=210bb49268bb27fc8e2cf0f0f9302eb8bf416a51;p=thirdparty%2Futil-linux.git cfdisk: fix colors initialization Signed-off-by: Karel Zak --- diff --git a/disk-utils/cfdisk.8 b/disk-utils/cfdisk.8 index 2fae5925f7..64197efe43 100644 --- a/disk-utils/cfdisk.8 +++ b/disk-utils/cfdisk.8 @@ -128,6 +128,17 @@ When in a sub-menu or at a prompt to enter a filename, you can hit the .I ESC key to return to the main command line. +.SH COLORS +Implicit coloring can be disabled as follows: +.RS + +.br +.BI "touch /etc/terminal-colors.d/cfdisk.disable" +.br + +.RE +For more details see +.BR terminal-colors.d (5). .SH "SEE ALSO" .BR fdisk (8), .BR sfdisk (8), diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index 47b7678739..5c04c170d9 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -1823,7 +1823,7 @@ int main(int argc, char *argv[]) - colors_init(colormode); + colors_init(colormode, "cfdisk"); fdisk_init_debug(0); cf->cxt = fdisk_new_context();