From 6181ff53c0d89559b680f139b4c535e6329fe445 Mon Sep 17 00:00:00 2001 From: Michael Wesemann Date: Tue, 11 Aug 2026 16:19:18 +0200 Subject: [PATCH] [mike@mwxm4] --- main.go | 7 ++++++- version.txt | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index da3c2a4..163a645 100644 --- a/main.go +++ b/main.go @@ -52,8 +52,13 @@ func main() { return } - setup() + // Colour first, then setup(): the configuration warnings setup() prints are + // the first thing on screen, and they were the only messages coming out + // uncoloured — col() saw useColor still false while they were written. + // Nothing about the terminal depends on the configuration, so the question + // can just as well be asked one line earlier. useColor = readline.IsTerminal(int(os.Stdout.Fd())) + setup() fmt.Println(banner()) diff --git a/version.txt b/version.txt index 24c232f..e358ed6 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -4.0.69 +4.0.70