From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,9a2a420ec841e44c X-Google-Attributes: gidfee84,public From: Jeff Sullivan Subject: Re: Dec C pecularity Date: 1999/06/22 Message-ID: <376FD8D4.B97F6F75@zk3.dec.com>#1/1 X-Deja-AN: 492620378 Content-Transfer-Encoding: 7bit References: <37614C91.3FBFAB0A@zk3.dec.com> <87hfocxypx.fsf@romulus.bland.fido.de> <376FD677.7E74690D@zk3.dec.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Compaq Computer Corporation Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Tobias Ernst wrote: > Gnu C can recognise "\x1B" as a way of encoding the character with > charactercode 0x1B (27, the escape character, here used to produce an > ANSI/VT100 sequence to clear the screen) into the string. I should also note that gcc does not produce your "expected" results for this program in it's "-traditional" (equivalent to DEC C's -std0) mode. % gcc -traditional t.c ; a.out x1B[2JThe screen is cleared. Also, fwiw, I was not able to #include and compile using gcc -traditional on my system. Your mileage may vary... -Jeff -- Jeff Sullivan | Compaq Computer Corp | mailto:jps@zk3.dec.com Compaq C/C++ | Nashua, NH ZK3-2X23 | Jeff.Sullivan@compaq.com