This is the mail archive of the
cygwin
mailing list for the Cygwin project.
java vs c, escape sequences
- From: rick271828 <rick314159 at yahoo dot com>
- To: cygwin at cygwin dot com
- Date: Sat, 13 Sep 2008 02:49:00 -0700 (PDT)
- Subject: java vs c, escape sequences
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/