Messages in this thread | | | Date | Sat, 29 Mar 2008 01:44:37 +0100 (CET) | From | Jan Engelhardt <> | Subject | Re: UTF-8 and Alt key in the console |
| |
On Saturday 2008-03-29 01:23, H. Peter Anvin wrote: >> And while we are at it, I'd suggest a whole new set of escape >> codes, the current sequences are particularly... bad for >> stream synchronization. Right now one has to parse strings for >> end-of-escape.. which is awkward. I'd just be able to >> strchr(s, '^]') for example and know when the escape code >> ends. (Compat should of course be honored where necessary.) > > I think it would be a major lose to move away from ISO 6429 format; the format > is self-terminating and really isn't all that complex.
What do you mean by self-terminating? There is no easy synchronization like in UTF-8, given you are anywhere inside a text stream, how do you know (a) you are already in an escape sequence and (b) how to figure out the rebegin of normal text.
| |