commit - 8cb9c1fcfa915b1f27f7c40a3b6f54dd869576c6
commit + 3454affde43d9fe5e3ca5269c79764756235a90c
blob - c5274959c69bb1bf0ae0bdbce7a23795372cec5f
blob + b11dc748de6335b9389b88a7ccc38084675ef34b
--- de/mud/jta/plugin/Telnet.java
+++ de/mud/jta/plugin/Telnet.java
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
- * "The Java Telnet Application" is distributed in the hope that it will be
+ * "The Java Telnet Application" is distributed in the hope that it will be
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
import de.mud.jta.event.TerminalTypeRequest;
import de.mud.jta.event.WindowSizeRequest;
import de.mud.jta.event.LocalEchoRequest;
+import de.mud.jta.event.EndOfRecordRequest;
import de.mud.telnet.TelnetProtocolHandler;
public void setLocalEcho(boolean echo) {
bus.broadcast(new LocalEchoRequest(echo));
}
+ /** notify about EOR end of record */
+ public void EndOfRecord() {
+ bus.broadcast(new EndOfRecordRequest());
+ }
/** write data to our back end */
public void write(byte[] b) throws IOException {
source.write(b);
bus.registerPluginListener(new OnlineStatusListener() {
public void online() {
handler.reset();
+ try {
+ handler.startup();
+ } catch(java.io.IOException e) {
+ }
+
bus.broadcast(new LocalEchoRequest(true));
}
public void offline() {
});
}
- public void setFilterSource(FilterPlugin source) {
+ public void setFilterSource(FilterPlugin source) {
if(debug>0) System.err.println("Telnet: connected to: "+source);
this.source = source;
}