diff options
author | Karel Zak | 2014-03-11 11:49:52 +0100 |
---|---|---|
committer | Karel Zak | 2014-03-11 11:49:52 +0100 |
commit | 210bb49268bb27fc8e2cf0f0f9302eb8bf416a51 (patch) | |
tree | fea2f3186201aa4e13cfdd5453e160d3356047cc /disk-utils | |
parent | fdisk: add note about colors to the man page (diff) | |
download | kernel-qcow2-util-linux-210bb49268bb27fc8e2cf0f0f9302eb8bf416a51.tar.gz kernel-qcow2-util-linux-210bb49268bb27fc8e2cf0f0f9302eb8bf416a51.tar.xz kernel-qcow2-util-linux-210bb49268bb27fc8e2cf0f0f9302eb8bf416a51.zip |
cfdisk: fix colors initialization
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'disk-utils')
-rw-r--r-- | disk-utils/cfdisk.8 | 11 | ||||
-rw-r--r-- | disk-utils/cfdisk.c | 2 |
2 files changed, 12 insertions, 1 deletions
diff --git a/disk-utils/cfdisk.8 b/disk-utils/cfdisk.8 index 2fae5925f..64197efe4 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 47b767873..5c04c170d 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(); |