From 869820ec6de3bc26d98e5e7420500d0fbde9408d Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 30 Jul 2026 05:16:39 +0900 Subject: cmd/mbf: enable output colouring This respects the de facto standards, on top of checking stderr. Signed-off-by: Ophestra --- cmd/mbf/cache.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'cmd/mbf/cache.go') diff --git a/cmd/mbf/cache.go b/cmd/mbf/cache.go index 7134e5d2..b4bc7126 100644 --- a/cmd/mbf/cache.go +++ b/cmd/mbf/cache.go @@ -28,6 +28,8 @@ type cache struct { idle bool // Unset [pkg.CSuppressInit]. verboseInit bool + // Whether to enable output colours. + color bool // Unset [pkg.CExternShallow]. deep bool // Loaded artifact of [rosa.QEMU]. @@ -61,6 +63,9 @@ func (cache *cache) open() (err error) { if !cache.deep { cache.attr.Flags |= pkg.CExternShallow } + if cache.color { + cache.attr.Flags |= pkg.CColourOutput + } done := make(chan struct{}) defer close(done) -- cgit v1.3.1