Date: 2025-05-23 01:43 pm (UTC)
simont: A picture of me in 2016 (Default)
From: [personal profile] simont
The toot where I announced it.

The inspiration was that a friend with anomalous colour vision said, elsewhere on Mastodon, "I find red on black text hard to read, but authors of colourful terminal software use it a lot. It would be nice if I could change it to be white on red, which I can read easily".

They didn't want to do this by hacking on their actual terminal program (which is perhaps the most obvious approach, at least if you're a programmer), because carrying a downstream patch to a program like xterm is a pain, especially if the program is constantly receiving updates from your distro.

I had the idea that you could do the same job by means of a separate program that sits between xterm and your shell session and just rewrites colour-setting control sequences, eliminating the problem of merging two sets of changes to the same source code. So I threw one together, and there it is (in a pointless demo mode where it just changes the colours). It has the key feature that it can think about both the foreground and background colours together, and rewrite them as a pair, so that it could map "red on black" into "white on red" as specified.

But at the moment, it's a starting point for experimentation: it doesn't have a built-in set of colour translations intended for any given type of unusual colour vision, and it also doesn't have a convenient configuration language. Anyone wanting to try it out at the moment will have to edit the C source code and recompile (which I know the friend in question is capable of). If it turns out to be useful in the long term then maybe I can change that, but I'd want to get some input from potential users first, because I don't even know what kind of configuration language would be convenient.
This account has disabled anonymous posting.
(will be screened if not validated)
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

May 2025

S M T W T F S
     1 2 3
4 5 6 7 8 9 10
11 12 13 14 15 16 17
18 19 20 21 22 23 24
25 26 2728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 28th, 2025 07:44 am
Powered by Dreamwidth Studios
OSZAR »