Hi Xilai,
thanks, I will do the fix.
Regards
JB
On 02/24/2017 05:07 AM, XiLai Dai wrote:
Seems I found the problem in the client/client.bat, missing the jansi on
the CLASSPATH, after adding:
set
CLASSPATH=%CLASSPATH%;%KARAF_HOME%\system\org\fusesource\jansi\jansi\1.14\jansi-1.14.jar
then it works well as before.
------------------------------------------------------------------------
*From:* XiLai Dai <xl...@talend.com>
*Sent:* Friday, February 24, 2017 11:14:11 AM
*To:* user@karaf.apache.org
*Subject:* Re: The client.bat doesn't show as expected in karaf 4.1.0 on
Windows
Thanks JB, Chris,
With putty, the branding/prompt works well, but the seperator looks like:
{code}
START LEVEL 100 , List Threshold: 50
ID ▒▒ State ▒▒ Lvl ▒▒ Version ▒▒ Name
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒
37 ▒▒ Resolved ▒▒ 80 ▒▒ 4.1.0 ▒▒ Apache Karaf ::
Diagnostic :: Boot
39 ▒▒ Active ▒▒ 80 ▒▒ 4.1.0 ▒▒ Apache Karaf :: OSGi
Services :: Event
114 ▒▒ Active ▒▒ 50 ▒▒ 3.4.6 ▒▒ ZooKeeper Bundle,
Fragments:
{code}
The karaf 4.0.8 client.bat works well on the same machine. karaf 4.1.0
is using jline 3.1.3 with jansi 1.14 (jansi.dll for Win64), I'm not sure
if the SetConsoleMode() is called or something else is changed.
Thanks.
------------------------------------------------------------------------
*From:* chris.g...@kiffer.ltd.uk <chris.g...@kiffer.ltd.uk>
*Sent:* Friday, February 24, 2017 5:21:49 AM
*To:* user@karaf.apache.org
*Subject:* Re: The client.bat doesn't show as expected in karaf 4.1.0 on
Windows
I had this once and it turned out that I was (unknowingly) executing Karaf
in a slightly different environment, so double-check all those
possibilities before blaming Karaf 4.1.0. Are you sure the previous
version still displays correctly on the same machine?
What you are seeing is ANSI (aka VT100) command sequences, windows console
used not to handle these correctly (i.e. would give the result that you
are seeing), then with Windows 10 it started to do so, and then again in a
recent update they turned it off again for programs launched from the
console (like client.bat) unless these programs explicitly call
SetConsoleMode to set the ENABLE_VIRTUAL_TERMINAL_PROCESSING flag. So
there are a lot of variables, not just Karaf. :-)
That's all I can say for now, because happily it's been a couple of years
since I had to do Java (in fact any) development work on Windows.
Hi, there
The client.bat is not working as expected in karaf 4.1.0 on Windows,
especially the branding and prompt
{code}
G:\download\apache-karaf-4.1.0\bin>client.bat -h localhost
Logging in as karaf
[36m __ __ ____ [0m
[36m / //_/____ __________ _/ __/ [0m
[36m / ,< / __ `/ ___/ __ `/ /_ [0m
[36m / /| |/ /_/ / / / /_/ / __/ [0m
[36m /_/ |_|\__,_/_/ \__,_/_/ [0m
[1m Apache Karaf[0m (4.1.0)
Hit '[1m<tab>[0m' for a list of available commands
and '[1m[cmd] --help[0m' for help on a specific command.
Hit '[1msystem:shutdown[0m' to shutdown Karaf.
Hit '[1m<ctrl-d>[0m' or type '[1mlogout[0m' to disconnect
[1mkaraf[0m@root()>
{code}
If you type into some commands on the console, e.g. "list", then it still
works, but the prompt looks like:
{code}
[1mkaraf[0m@root()>
{code}
could this problem be introduced by the jline or sshd upgraded in the
4.1.0? or something need to be configured?
Thanks
Xilai
--
Jean-Baptiste Onofré
jbono...@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com