This seems to imply that Karaf is probing for JANSI and using it if found,
can anyone confirm that?


> 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
>>         __ __                  ____      
>>        / //_/____ __________ _/ __/      
>>       / ,<  / __ `/ ___/ __ `/ /_        
>>      / /| |/ /_/ / /  / /_/ / __/        
>>     /_/ |_|\__,_/_/   \__,_/_/         
>>
>>   Apache Karaf (4.1.0)
>>
>> Hit '<tab>' for a list of available commands
>> and '[cmd] --help' for help on a specific command.
>> Hit 'system:shutdown' to shutdown Karaf.
>> Hit '<ctrl-d>' or type 'logout' to disconnect
>>
>> karaf@root()>
>>
>>
>> {code}
>>
>>
>> If you type into some commands on the console, e.g. "list", then it
>> still
>> works, but the prompt looks like:
>>
>> {code}
>>
>> karaf@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
>>
>
>
>


Reply via email to