rick271828 wrote:

> 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?

It's because you are not running the program with stdout attached to a
terminal or terminal emulator. Probably, you are running in a console
window.

Cygwin can emulate a terminal in a console window for programs that do
all I/O through it, but for third-party applications, like Sun java, it
cannot.

Run the application in rxvt and it works as expected.

-- Barry

-- 
http://barrkel.blogspot.com/

--
Unsubscribe info:      

I can run the date command from the command line. Its path is /bin/ date.

<system_fonts.tiff>


I tried twice subscribing to this list, but the list daemon never sent confirmation (yes, I checked my junk mail box too). Please reply to me directly. Thanks. Your help is greatly appreciated.

Roger


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to