mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Guillaume Nodet <gno...@apache.org>
Subject Re: Indentation issue in ssh client
Date Sat, 01 Mar 2014 00:06:07 GMT
When you create your shell on the server side, you may need to take care
about tty options that are sent by the client side according to its
terminal configuration.
Have a look at the ProcessShellFactory for how to handle some of those
flags.   Most probably, you need to translate any \n to \r\n before sending
them to the client.
All the pty modes (help available using "man stty") are available using
getPtyModes() on the Environment object which is given when the Command is
started.

Cheers,
Guillaume


2014-02-28 23:26 GMT+01:00 b0nn19 <b0nn19@hotmail.com>:

> Hi,
>
> I am using ssh mina server and when I tried to connect to my ssh server
> from my ssh unix client I am seeing indentation in the client. See below:
>
> troy%ssh -p 8001 max
> SOCKSifying /usr/local/nms.complied/openssh/current/bin/ssh
> 11
> ^^11
> ^^^^^11
>
> So everytime I type any characters and enter return the next characters
> start below the previous one and not from the beginning of the line.
>
> I am trying to implement my own shell factory and display customized
> banner. But because of this indentation my customized banner is not being
> displayed correctly.
>
> Any help will be greatly appreciated.
>
> Thanks
>
> Paul
>
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message