Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Jeff Sullivan <jps@zk3.dec.com>
Subject: Re: Dec C pecularity
Date: 1999/06/22	[thread overview]
Message-ID: <376FD8D4.B97F6F75@zk3.dec.com> (raw)
In-Reply-To: 376FD677.7E74690D@zk3.dec.com

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 <stdio.h> 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



      reply	other threads:[~1999-06-22  4:00 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-09  4:00 Dec C pecularity Bernhard Reiter
1999-06-11  4:00 ` Jeff Sullivan
1999-06-13  4:00   ` Tobias Ernst
1999-06-14  4:00     ` Peter da Silva
1999-06-26  4:00       ` Tobias Ernst
1999-06-29  4:00         ` Charles M Richmond
1999-07-13  4:00           ` Tobias Ernst
1999-07-13  4:00             ` Kevin Oberman
1999-07-13  4:00             ` Charles M Richmond
1999-07-14  4:00             ` T.E.Dickey
1999-07-15  4:00               ` libcurses and patches for 4.0 jhitchcock
1999-07-16  4:00                 ` T.E.Dickey
1999-08-10  4:00                 ` b_andreasen
1999-07-16  4:00               ` Dec C pecularity Tobias Ernst
1999-07-18  4:00                 ` T.E.Dickey
1999-07-14  4:00         ` T.E.Dickey
1999-06-22  4:00     ` Jeff Sullivan
1999-06-22  4:00       ` Jeff Sullivan [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox