News for hackers. Stuff that matters.
Re:State of the Terminal by joouha on Thursday May 16, 2024 @10:40AM (#40379052)
Do any terminals support overprinting? This could radically change what is possible in TUIs
Re:State of the Terminal by yjftsjthsd-h on Thursday May 16, 2024 @11:45AM (#40379750)
I don't know about overprinting per se, but you can already use whatever foreground+background colors you want; how much benefit would overprinting be?
Re:State of the Terminal by joouha on Thursday May 16, 2024 @11:59AM (#40379906)
This would allow more complex shapes to be drawn by combining multiple glyphs, which would be useful for complex TUI applications (there are only a limited number of box-drawing characters available) Also, this could allow drawing more than two colours per terminal cell.
Re:State of the Terminal by wonger_ on Thursday May 16, 2024 @01:26PM (#40380898)
That's an interesting idea. The closest thing I can think of is using an extended box-drawing font: https://hpjansson.org/blag/2024/01/18/chafa-1-14-all-singing....

That doesn't solve the two-colors-per-cell challenge. But it makes for some very realistic terminal images.

For higher fidelity rendering, I think the next best option is supporting image protocols like sixels or Kitty inline raster images. I'm not sure how overprinting would compare to existing options.

Re:State of the Terminal by joouha on Friday May 17, 2024 @05:06AM (#40387874)
I've just found that Mintty supports this

https://github.com/mintty/mintty/wiki/CtrlSeqs#overstrike

Re:State of the Terminal by yjftsjthsd-h on Thursday May 16, 2024 @01:38PM (#40381066)
Oh, like making arrows by overlaying - with > or ^ with |. I could see that.