Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: c46811816a3597a9024c05a2fdb33936d60e13c0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/*******************************************************************************
 * Copyright (c) 2010, 2011 SAP AG
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 *     Lazar Kirchev, SAP AG - initial API and implementation  
 *******************************************************************************/

package org.eclipse.equinox.console.telnet;
/**
 * A callback through which the TelnetInputScanner notifies the TelnetConnectionManger
 * that the terminal type negotiation with the client has finished. This is importednt, because
 * the TelnetConnectionManager should start the CommandSession after the negotiation is finished.
 * This is necessary, because the user input should be interpreted with the correct terminal type.
 */
public class NegotiationFinishedCallback implements Callback {
	
	private TelnetConnection telnetConnection;
	
	public NegotiationFinishedCallback(TelnetConnection telnetConnection) {
		this.telnetConnection = telnetConnection;
	}
	
	public void finished() {
		telnetConnection.telnetNegotiationFinished();
	}

}

Back to the top