Skip to content

User-defined Themes#323

Open
john-craig wants to merge 2 commits into
IBM:mainfrom
john-craig:feature/themes
Open

User-defined Themes#323
john-craig wants to merge 2 commits into
IBM:mainfrom
john-craig:feature/themes

Conversation

@john-craig
Copy link
Copy Markdown

This pull request contains updates to the tnz library to make it possible for users to define themes for their ncurses environment and select them. This code was largely written by IBM Bob.

John Craig added 2 commits February 12, 2026 10:33
(cherry picked from commit 3b24d9ff1734cae0767660952b3b5196505a45f6)
(cherry picked from commit f3cfe2aef1e5b42584d43b2bbce5e6c53688fa47)
@john-craig john-craig requested a review from najohnsn as a code owner April 22, 2026 17:21
@najohnsn
Copy link
Copy Markdown
Member

If I were asked, I would point to the last paragraph in https://ibm.github.io/tnz/colors:

If different colors are desired, check the zti-hosting terminal for the capability to change the color palette.
You may need to use TNZ_COLORS=8 to get zti to use the customized color palette.

The suggestion is to manage color themes through the hosting ascii terminal emulator and use the TNZ_COLORS=8 environment variable to get zti to use that theme.

Does this PR have an advantage of the above?

@john-craig
Copy link
Copy Markdown
Author

Personally, I never had any luck with getting the terminal to honor colors through the TNZ_COLORS=8 method, so this approach makes that simpler. It also makes it possible for users to have a theme for their TNZ terminal different from their main terminal theme (if they so choose), and allows them to share their themes easily using the theme files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants