From 92fcc03143a6f9ceac836f7027f4aedd8a79e7c8 Mon Sep 17 00:00:00 2001 From: Carsten Behring Date: Tue, 21 May 2024 20:30:32 +0000 Subject: [PATCH 1/2] true color in terminal --- src/scicloj/.devcontainer/setup.sh | 4 +++- src/scicloj/.devcontainer/terminfo24bit.src | 10 ++++++++++ src/scicloj/CHANGELOG.md | 2 ++ 3 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 src/scicloj/.devcontainer/terminfo24bit.src diff --git a/src/scicloj/.devcontainer/setup.sh b/src/scicloj/.devcontainer/setup.sh index 5d7f674..f20346f 100755 --- a/src/scicloj/.devcontainer/setup.sh +++ b/src/scicloj/.devcontainer/setup.sh @@ -2,4 +2,6 @@ clj -Sthreads 1 -P mkdir -p .venv -poetry install \ No newline at end of file +poetry install +tic -x ./terminfo24bit.src +export TERM=xterm-24bits \ No newline at end of file diff --git a/src/scicloj/.devcontainer/terminfo24bit.src b/src/scicloj/.devcontainer/terminfo24bit.src new file mode 100644 index 0000000..6221412 --- /dev/null +++ b/src/scicloj/.devcontainer/terminfo24bit.src @@ -0,0 +1,10 @@ +# Use colon separators. +xterm-24bit|xterm with 24-bit direct color mode, + use=xterm-256color, + setb24=\E[48:2:%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%dm, + setf24=\E[38:2:%p1%{65536}%/%d:%p1%{256}%/%{255}%&%d:%p1%{255}%&%dm, +# Use semicolon separators. +xterm-24bits|xterm with 24-bit direct color mode, + use=xterm-256color, + setb24=\E[48;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm, + setf24=\E[38;2;%p1%{65536}%/%d;%p1%{256}%/%{255}%&%d;%p1%{255}%&%dm, \ No newline at end of file diff --git a/src/scicloj/CHANGELOG.md b/src/scicloj/CHANGELOG.md index d6206a8..c77b20a 100644 --- a/src/scicloj/CHANGELOG.md +++ b/src/scicloj/CHANGELOG.md @@ -1,4 +1,6 @@ # unreleased +- true color for emacs -nw + # 1.0.4 - use setup.sh script From 7a30184c4210b9e5e2416d741d6147de76260ef6 Mon Sep 17 00:00:00 2001 From: Carsten Behring Date: Tue, 21 May 2024 20:40:19 +0000 Subject: [PATCH 2/2] v1.0.5 --- .gitignore | 3 ++- src/scicloj/CHANGELOG.md | 2 ++ src/scicloj/devcontainer-template.json | 2 +- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 78f6ddf..78a9ceb 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ src/scicloj/.cpcache/ src/scicloj/.clj-kondo src/scicloj/poetry.lock -/src/scicloj/.lsp/ +src/scicloj/.lsp/ +src/scicloj/.devcontainer/.devpod-internal diff --git a/src/scicloj/CHANGELOG.md b/src/scicloj/CHANGELOG.md index c77b20a..24f3f9e 100644 --- a/src/scicloj/CHANGELOG.md +++ b/src/scicloj/CHANGELOG.md @@ -1,4 +1,6 @@ # unreleased + +# 1.0.5 - true color for emacs -nw # 1.0.4 diff --git a/src/scicloj/devcontainer-template.json b/src/scicloj/devcontainer-template.json index ec9f9a2..c2a7cd3 100644 --- a/src/scicloj/devcontainer-template.json +++ b/src/scicloj/devcontainer-template.json @@ -1,6 +1,6 @@ { "id": "scicloj", - "version": "1.0.4", + "version": "1.0.5", "name": "scicloj template", "description": "A scicloj Template", "documentationURL": "https://github.com/scicloj/devcontainer-templates/tree/main/src/scicloj",