SshServer.setShellFactory() takes Factory<Command> parameter,
Factory<Command> needs to implement "Command create()",
and Command interface has following methods:

void setInputStream(InputStream in);
void setOutputStream(OutputStream out);
void setErrorStream(OutputStream err);
void setExitCallback(ExitCallback callback);
void start(Environment env) throws IOException;
void destroy();

Environment has getEnv() and I can get ENV_LINES and ENV_COLUMNS at start
up,
but where can I get changed event for these values?

I considered that run loop checks lines and columns after every read()
but read() is blocking method, so I can't adjust terminal output
immediately.

Reply via email to