3 ms·
Please don't; the possibility of being connected to a non-ANSI terminal disappeared before most of us were born.
by o11c 3y ago
Please don't; the possibility of being connected to a non-ANSI terminal disappeared before most of us were born.
- foresto 3y agoCounterexample: https://github.com/nushell/nushell/issues/4096 https://github.com/nushell/nushell/issues/4096 Old glass terminals are still in use here and there, too.
- ElectricalUnion 3y agoWin32 console is unfortunately a thing. Not anymore, but was a thing for too long. And PC/3270. Some very powerful systems like Linux on IBM Z are POSIX and your default "interactive login" choice is PC/3270. And in the long term, isn't this exactly the problem? Do we really want to perpetuate the status-quo of "I am in a somewhat POSIX environment, so the STDOUT/STDERR if interactive must behave exactly like xterm and if not I will just pretend it is xterm anyways and output garbage."?
- JdeBP 3y agoWhilst it is true that ECMA-48 terminals are overwhelmingly the norm nowadays, that is not a counterpoint to "If you use colours, please consider making them optional".