Path: csiph.com!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: iso646.h Date: Wed, 31 Jan 2024 13:26:33 -0800 Organization: None to speak of Lines: 22 Message-ID: <87h6itry7q.fsf@nosuchdomain.example.com> References: <87jznu1c4v.fsf@nosuchdomain.example.com> <86zfwnc34o.fsf@linuxsc.com> <86il3bb7rb.fsf@linuxsc.com> <87le85s1j2.fsf@nosuchdomain.example.com> <20240131122033.700@kylheku.com> MIME-Version: 1.0 Content-Type: text/plain Injection-Info: dont-email.me; posting-host="e9ab33cd51e38659416bab92bcd2f21f"; logging-data="1790578"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/pVFW8fgIYEkbjwxWIlzAF" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:fekceftHMdYe6Kg9hz6TjqGuPr8= sha1:O+bVbQlqMsMSMCW2xuTcATim66w= Xref: csiph.com comp.lang.c:381411 Kaz Kylheku <433-929-6894@kylheku.com> writes: > On 2024-01-31, Keith Thompson wrote: >> Terminal control sequences (almost always based on VT100 these days) are >> typically not printable, but tend to avoid null characters, which means >> you can very probably use printf to print them (assuming you're on a >> POSIX-like system). > > They use text. For instance, a cursor position is both accepted and > reported in a decimal format like 13;17. All the commands and > delimiting characters are textual, except for part of the CSI (control > sequence introducer). The 7 bit CSI uses two characters, ESC and [. > Except for that one ESC, everything is printable. I'd describe "printable except for ESC" as binary. And some sequences use other non-printable characters like ASCII BEL (Ctl-G) (perhaps not VT100 standard, but for example commands to change fonts and colors for xterm). -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Medtronic void Void(void) { Void(); } /* The recursive call of the void */