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