News for hackers. Stuff that matters.
Re:I Just Wanted Emacs to Look Nice – Using 24-Bit Color in ... by JoshTriplett on Wednesday January 31, 2024 @05:15AM (#39202048)
Yes, absolutely.

Also, as a pet peeve: always read your input from stdin, and if stdin isn't readable, do not assume that if stdout/stderr is a tty you're allowed to use that for input. (This assumption is broken in batch/CI/etc systems where stdout/stderr may be a tty so that a program emits color/etc, while making stdin /dev/null because there's no user interaction possible.)

Re:I Just Wanted Emacs to Look Nice – Using 24-Bit Color in ... by boxfire on Wednesday January 31, 2024 @11:02AM (#39205378)
TTY queries are written to stdout but read from stdin. That's not user interaction. E.g. if you're system doesn't have ioctl for window size (or you're over a remote serial etc), setting the cursor to the bottom right and asking it's position. Those programs break with no stdin because a tty is inherently bidirectional communication!
Re:I Just Wanted Emacs to Look Nice – Using 24-Bit Color in ... by JoshTriplett on Wednesday January 31, 2024 @12:59PM (#39207069)
Such queries are not universally supported, and a program using them has to be prepared to expect a lack of response to the query. (This is one of many issues with such queries.)