Introduction

    The terminal can be connected to the server in combination with Jsch.

Sample code

<?xml version='1.0' encoding='utf-8'?>

<Shell name="TestSwtTerminalWithJsch" descriptors="xworker.swt.widgets.Shell">
    <FillLayout name="FillLayout"/>
    <Terminal descriptors="xworker.swt.terminal.Terminal" backgroundColor="whitesmoke" foregroundColor="black"
         cursorBlink="true" autoReconnect="true">
        <JCSessionTerminalConnection descriptors="xworker.jsch.swt.JCSessionTerminalConnection">
            <Sessions>
                <AppSession name="AppSession" serverId="3" serverName="xworker"/>
            </Sessions>
        </JCSessionTerminalConnection>
    </Terminal>
</Shell>

Screenshot

 

Copyright ©  2007-2019 XWorker.org  版权所有  沪ICP备08000575号