[Bug 1990691] Re: fdisk colors are not actually enabled by default
Heinrich Schuchardt
1990691 at bugs.launchpad.net
Fri Nov 25 16:06:03 UTC 2022
The colors to look for in 'fdisk -l' are white and grey.
/etc/terminal-colors.d/fdisk.scheme is only needed if you want to define
your own color scheme. See
https://unix.stackexchange.com/questions/385952/fdisk-output-is-bold-
but-no-colors
** Changed in: util-linux (Ubuntu)
Status: New => Invalid
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1990691
Title:
fdisk colors are not actually enabled by default
Status in util-linux package in Ubuntu:
Invalid
Bug description:
$ lsb_release -rd
Description: Ubuntu 22.04.1 LTS
Release: 22.04
$ apt-cache policy fdisk
fdisk:
Installed: 2.37.2-4ubuntu3
Candidate: 2.37.2-4ubuntu3
Version table:
*** 2.37.2-4ubuntu3 500
500 https://gpl.savoirfairelinux.net/pub/mirrors/ubuntu jammy/main amd64 Packages
100 /var/lib/dpkg/status
# Expected behavior
`fdisk -l`'s output should have colors other than white and black.
Otherwise, `fdisk --help` should not say that colors are enabled by default.
https://unix.stackexchange.com/a/385973/524752 says that
/etc/terminal-colors.d/fdisk.scheme should exist, but it is missing
from `dpkg-query -L fdisk | grep /etc/terminal-colors.d/fdisk.scheme`.
# Actual behavior
`fdisk -l` shows a list of partitions without color.
$ fdisk --help | grep color
-L, --color[=<when>] colorize output (auto, always or never)
colors are ___enabled___ by default
(emphasis mine)
$ dpkg-query -L fdisk | grep /etc/terminal-colors.d/fdisk.scheme
$ # no output
$ cat /etc/terminal-colors.d/fdisk.scheme
cat: /etc/terminal-colors.d/fdisk.scheme: No such file or directory
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1990691/+subscriptions
More information about the foundations-bugs
mailing list