by Qwertious · 3y ago · 0 comments
Saying "cat is not a text viewer" is absurd, though - the history of Unix is that the "print" command was removed when the Unix devs realized that cat did the same thing already, and so told their users to just use cat with a single argument.
I'm not saying it was good design, but it was intended design.
it's not built into our text format (our being us,-unix-before-unicode). It's built into the terminal.
The file format is 8-bit clean as it should be, any other values are going to have to be out-of-band. The unix stream format follows the file format, with the exception of
the terminal format (and the comms format) is 7-bit ascii with varying amounts of ANSI control, but that's on you, you bought the terminal...
ANSI escape sequences do also include control codes but there’s plenty in ASCII too.
Frankly, you only need to spend 30 seconds looking at an ASCII table to see this.
Source: I’m an author of an alt $SHELL
Since we've all read the docs, but a bunch of you are laboring under misimpressions, I'm trying to say things in an unusual but truthful way to be the iceberg to the titanic of misunderstanding that thinks the BEL character doesn't belong in ANSI's ASCII protocol
ANSI's escape sequences came later to control more functions for glass teletypes.