News for hackers. Stuff that matters.
Re:Dotfiles being hidden is a UNIXv2 mistake (2012) by thayne on Thursday August 11, 2022 @09:04PM (#32433716)
> How would you design a simple text outputting protocol?

If I were to design terminal control today, I might have a separate file descriptor for a pipe that is used for control communication instead of sending control codes inline with the text. And I would definitely have a way to query the capabilities of the terminal directly, instead of looking it up in a terminfo database.

Re:Dotfiles being hidden is a UNIXv2 mistake (2012) by Dylan16807 on Friday August 12, 2022 @01:51AM (#32435085)
> I might have a separate file descriptor for a pipe that is used for control communication instead of sending control codes inline with the text.

How do you keep that synchronized with the text for things like moving the cursor between words?

Re:Dotfiles being hidden is a UNIXv2 mistake (2012) by account42 on Monday August 15, 2022 @10:23AM (#32470053)
Having all data in a single steam also makes it easier to buffer messages like a complete log entry with colors and then output that by just writing one buffer to stdout.