This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]