On Tue, Dec 13, 2022 at 02:29:22PM +0000, Stuart Henderson wrote: > On 2022/12/13 14:27, Stuart Henderson wrote: > > On 2022/12/13 14:13, Janne Johansson wrote: > > > Den tis 13 dec. 2022 kl 14:11 skrev Alireza Arzehgar > > > <[email protected]>: > > > > I implemented an interesting game. I thought this game is cool and > > > > could be > > > > fun > > > > for OpenBSD users. I don't know what game will accept on OpenBSD. But I > > > > hope > > > > this patch is interesting. > > > > > > Send it as a port instead. > > > > yep, I don't think we're very likely to add any more to src/games. > > > > > + sprintf(text, "\033[%dm%s\033[0m", 30 + id, msg); > > > > and even if we did, base doesn't assume that every console handles > > ANSI X3.64 colour sequences. there are some style(9) issues too. > > > > ports would be the right place to add this. > > > > (...though it would be better if it didn't assume ANSI there, too...)
Do we actually have any tty in wide use that doesn't accept ANSI color sequences these days ? It's nice to be pedantic about it, but be real, the world of actual VT220 and other Wyse thingies is long gone the way of the dodo.
