This pull request adds 256 colour support that can be enabled by compiling with cargo run --features 256colour. 256 colour support is useful for terminals without 24 bit colour support such as the macOS terminal.
This pull request also refactors part of the code by replacing the static methods Colour::ansi_text_colour_string and Colour::ansi_bg_colour_string with instance methods to make code cleaner.
This pull request adds 256 colour support that can be enabled by compiling with
cargo run --features 256colour
. 256 colour support is useful for terminals without 24 bit colour support such as the macOS terminal.This pull request also refactors part of the code by replacing the static methods
Colour::ansi_text_colour_string
andColour::ansi_bg_colour_string
with instance methods to make code cleaner.