quiet behaviour
maf at appgate.com
maf at appgate.com
Mon Oct 24 10:43:21 MEST 2005
On 20 okt, Zoltan Arpadffy wrote:
> Unfortunately, interactor.promptLine asks for confirmation that is not
> desired when server parameter is present - specially that server can be
> overwritten during confirmation.
>
> I solved this problem by patching SSHPropertyHandler with:
>
> if ( host == null ) {B
> host = interactor.promptLine("\rSSH Server/Alias: ", host);
> if (host == null) {
> throw new SSHStdIO.SSHExternalMessage("");
> }
> }
> host = host.trim();
But this should not be needed. A check for a null host is done a few
lines higher up in the file:
if(!interactor.quietPrompts() || (host == null || host.equals(""))) {
And the code works when I test it. That is, setting "quiet" to true
makes MindTerm not ask for server if present.
/MaF
--
Martin Forssen <maf at appgate.com> Development Manager
Phone: +46 31 7744361 AppGate Network Security AB
More information about the Mindterm-users
mailing list