delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/09/13/05:49:56

X-Recipient: archive-cygwin AT delorie DOT com
X-Spam-Check-By: sourceware.org
Message-ID: <19469048.post@talk.nabble.com>
Date: Sat, 13 Sep 2008 02:49:00 -0700 (PDT)
From: rick271828 <rick314159 AT yahoo DOT com>
To: cygwin AT cygwin DOT com
Subject: java vs c, escape sequences
MIME-Version: 1.0
X-Nabble-From: rick314159 AT yahoo DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

Can anybody please explain why the c code:
    printf("%c[H%c[J",27,27); clears my cygwin console as expected, but the
Java code:

 System.out.print("\033[2J\033[H");

displays a back arrow instead on interpreting the escape character?

the problem seems impervious to all language level variations and ansi.sys
loaded or not in windows land

cygwin on windows xp, jdk1.6.0_06 from sun, gcc et.al. from cygwin

thanks for any help
-- 
View this message in context: http://www.nabble.com/java-vs-c%2C-escape-sequences-tp19469048p19469048.html
Sent from the Cygwin list mailing list archive at Nabble.com.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019