Hi Thiago,
FYI, the problem is already fixed on Karaf 4.2.2-SNAPSHOT.
The problem is that the size of the terminal columns size is set to 0
while running in Docker.
So, the fix is simply to set a "correct" size when size is 0:
if (jlineTerminal.getSize().getColumns() == 0) {
jlineTerminal.setSize(new Size(80, 24));
}
I'm backporting this fix on Karaf 4.1.x branch as well.
Regards
JB
On 14/09/2018 23:01, Thiago Moreira (timba) wrote:
>
> Hey JB, do you have any updates on this? Is the problem related to
> jline/karaf or both?
>
> Thanks
>
> Thiago Moreira
> +55 48 99911-6331
>
>
> On Mon, Sep 3, 2018 at 10:45 AM Thiago Moreira (timba)
> <[email protected] <mailto:[email protected]>> wrote:
>
>
> Nice JB, if there is anything that I can do for help let me know.
>
> Thiago Moreira
> +55 48 99911-6331
>
>
> On Mon, Sep 3, 2018 at 1:18 AM Jean-Baptiste Onofré <[email protected]
> <mailto:[email protected]>> wrote:
>
> OK, I saw the response in the mail subject ;)
>
> Yeah, I saw that as well when using -tty in the docker. It seems the
> term type in docker doesn't work fine with jline. I gonna work
> on a fix
> for 4.2.2.
>
> Regards
> JB
>
> On 03/09/2018 06:06, Jean-Baptiste Onofré wrote:
> > Hi,
> >
> > I guess you are using docker right ?
> >
> > Regards
> > JB
> >
> > On 03/09/2018 02:00, Thiago Moreira (timba) wrote:
> >>
> >> Hi again,
> >>
> >> I'm upgrading my project from 4.0.9 (ServiceMix-7.0.1) to
> 4.2.1 but
> >> when I try to access the console via ssh (ssh -p 8101
> [email protected] <mailto:[email protected]>
> >> <mailto:[email protected] <mailto:[email protected]>>) I
> get all the responses from any command
> >> issued in the console with problems, looks line that there
> isn't a line
> >> break. Check the printscreen below.
> >>
> >> Screen Shot 2018-09-02 at 20.51.29.png
> >>
> >> If I access it via *karaf_home/bin/client* it works perfectly.
> >>
> >> Screen Shot 2018-09-02 at 20.52.26.png
> >>
> >> On version 4.0.9/4.0.10 I don't have this issue. What I'm
> missing?
> >>
> >> Thanks
> >>
> >> Thiago Moreira
> >> +55 48 99911-6331
> >
>
> --
> Jean-Baptiste Onofré
> [email protected] <mailto:[email protected]>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Jean-Baptiste Onofré
[email protected]
http://blog.nanthrax.net
Talend - http://www.talend.com