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