summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorTim Oram <dev@mitmaro.ca>2020-01-26 14:19:02 -0330
committerTim Oram <dev@mitmaro.ca>2020-01-26 22:21:07 -0330
commitc954302cfff92f37f361a191de85a50f0d42653a (patch)
tree49cdd79e258b9efef1521e97e047a63e5b70416e /.github
parentcd7052f17e75ced4dba54d03c8ded43e3fbb501f (diff)
Fix ANSI colour support
The version of curses that is used on Unix like systems does not properly support truecolor. Because of this, existing colour codes indexes were being overwritten to provide support for arbitrary custom colours. This worked fine in the terminal emulators tested on Linux, as the colours were reset back to their originals when the tool exited. However, on MacOS, the colour changes would remain after the tool exited, until the terminal was restarted. To fix this, in terminals that do not support overwriting colours, a provided colour triplet will be matched against the closest ANSI indexed colour.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/pull-request.yml8
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml
index e693733..a3aeffe 100644
--- a/.github/workflows/pull-request.yml
+++ b/.github/workflows/pull-request.yml
@@ -10,7 +10,7 @@ jobs:
- name: Install dependencies
run: sudo apt-get install build-essential libncursesw5-dev pkg-config liblzma-dev
- name: Test
- run: cargo test
+ run: cargo test -- --test-threads=1
- name: Build
run: cargo build --release
- name: Test Run
@@ -30,7 +30,7 @@ jobs:
with:
toolchain: stable
- name: Test
- run: cargo test
+ run: cargo test -- --test-threads=1
- name: Build
run: cargo build --release
- name: Test Run
@@ -41,8 +41,8 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Test
- run: cargo test --target x86_64-pc-windows-msvc --release
+ run: cargo test --target x86_64-pc-windows-msvc --release -- --test-threads=1
- name: Build
run: cargo build --target x86_64-pc-windows-msvc --release
- name: Test Run
- run: cargo run --target x86_64-pc-windows-msvc --release -- --version \ No newline at end of file
+ run: cargo run --target x86_64-pc-windows-msvc --release -- --version