home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.development      Operating system development chatter      4,255 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 2,861 of 4,255   
   mutazilah@gmail.com to Branimir Maksimovic   
   Re: news galore   
   12 Oct 21 19:58:02   
   
   From: muta...@gmail.com   
      
   On Wednesday, October 13, 2021 at 1:16:02 PM UTC+11, Branimir Maksimovic wrote:   
      
   > > Now that I have control over all the components (editor,   
   > > news reader, C library, OS), I'd like to rationalize C90.   
   > > E.g. maybe I need a #include  that defines   
   > > things like:   
   > > ESC_CHAR '\x1b'   
   > > ESC_STR "\x1b"   
   > > so that I don't need that value hardcoded in micro-emacs.   
   > >   
   > I beleive that you have to do that by yourself.   
   > define that things as C does not defines exact represantation   
   > of characters. So you can't match on \r\n rather   
   > on \x0d\x0a ...   
      
   Sorry if I wasn't clear. The character would be different for   
   different platforms, so an EBCDIC platform would have:   
      
   ESC_CHAR '\x27'   
      
   Basically for ANSI escape sequences to work at all, we need   
   an ESC character to exist in the character set, even though the   
   C90 standard doesn't define one. But we need to define one.   
      
   I think it is appropriate to extend C90 to provide some   
   essentials like this. I think it is quite neat that a C   
   compiler, editor, news reader can all be written in C90   
   terms, or C90+ if we add in that extra define. Also for   
   interactive chat I need a concept of XON, so:   
      
   XON_CHAR '\x11'   
      
   I might need more characters like DLE to write a file   
   transfer protocol. I haven't crossed that bridge yet.   
      
   BFN. Paul.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca