Hello Cody,
I think there is a misunderstanding.
I'd not expect Jsch to do any interpretation of ANSI sequences. I'd
expect it
to transport a verbatim (binary) stream of data between the local and
the
remote host. It's the terminal program which does the escape sequence
interpretation.
For instance, from the Eclipse based DSDP-TM project, you can download
the Terminal component and it'll give you an ANSI terminal through Jsch:
http://www.eclipse.org/dsdp/tm/
To download, first get the Eclipse Platform Runtime 3.3 (or Eclipse SDK,
or any other Eclipse base package), then either go to the Europa
Discovery
Site from Eclipse Update Manager, or download the
TM-Terminal-2.0.0.1.zip
from
http://download.eclipse.org/dsdp/tm/downloads/drops/R-2.0.0.1-2007070610
39/
Cheers,
--
Martin Oberhuber
Wind River Systems, Inc.
Target Management Project Lead, DSDP PMC Member
http://www.eclipse.org/dsdp/tm
________________________________
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Cody
Harris
Sent: Friday, August 24, 2007 4:03 PM
To: Atsuhiko Yamanaka
Cc: [email protected]
Subject: Re: [JSch-users] JSch not playing well with WinSSHd
ANSI codes consist of an escape character (27, if my memory is
correct), followed by a [, then typically (though not always) a set of
numbers, sometimes a semicolon followed by another set of numbers, and
then a letter command. It was first thought this was a WinSSHd problem,
but it's actually a problem for other platforms too. ANSI is the
standard way to colourize the terminal and move the cursor around.
http://en.wikipedia.org/wiki/ANSI_escape_code
Even from WinXP -> WinXP, using JSch, for some reason the escape
codes aren't being detected by the terminal. I have a feeling that's do
to some Java convention, or something to do with Unicode. There's codes
for a lot of stuff, like move to an absolute position on the screen, and
move the cursor up, down, left, or right so many positions.
I was able to hack together inside Channel.java a fix for this
issue, but it breaks (non existant) compatibility with linux Curses
apps.
On 8/24/07, Atsuhiko Yamanaka <[EMAIL PROTECTED]> wrote:
Hi,
+-From: "Cody Harris" <[EMAIL PROTECTED]> --
|_Date: Wed, 22 Aug 2007 15:32:36 -0400 _____
|
|In my environment, we use JSch to run commands on
remote machines. When we
|connect to a Windows machine, running WinSSHd, JSch
does not properly parse
|the ANSI escape codes properly, and instead prints
them out. Is this a
|known problem, or is there a work around available?
It's possible for me
|to hack up the source, but I don't want to reinvent
the wheel.
Thank you for your feedback, but I could not understand
your problem.
What kind of the ASNI escape codes should be parsed in
JSch?
Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Fax +81-22-224-8773
Skype callto://jcraft/
--
Website: http://vectec.net
Blog: http://blog.vectec.net
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users