changeset 54:a7e660661e08 tn5250

start tn5250 integration
author Carl Byington <carl@five-ten-sg.com>
date Wed, 11 Jun 2014 14:01:43 -0700
parents e872762ec105
children 17fd0e489165
files src/com/five_ten_sg/connectbot/service/TerminalKeyListener.java src/com/five_ten_sg/connectbot/transport/TN5250.java
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/com/five_ten_sg/connectbot/service/TerminalKeyListener.java	Wed Jun 11 13:37:02 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/service/TerminalKeyListener.java	Wed Jun 11 14:01:43 2014 -0700
@@ -17,6 +17,7 @@
 package com.five_ten_sg.connectbot.service;
 
 import java.io.IOException;
+import java.io.UnsupportedEncodingException;
 import java.nio.charset.Charset;
 import java.lang.ref.WeakReference;
 import java.util.List;
--- a/src/com/five_ten_sg/connectbot/transport/TN5250.java	Wed Jun 11 13:37:02 2014 -0700
+++ b/src/com/five_ten_sg/connectbot/transport/TN5250.java	Wed Jun 11 14:01:43 2014 -0700
@@ -23,6 +23,7 @@
 import java.net.Socket;
 import java.net.SocketException;
 import java.net.UnknownHostException;
+import java.util.HashMap;
 import java.util.List;
 import java.util.Map;
 import java.util.regex.Matcher;
@@ -71,6 +72,10 @@
     class vt320x5250 extends vt320 {
         private HashMap<Integer, String> mnemonics;
 
+        public vt320x5250() {
+            this(80,24);
+        }
+
         public vt320x5250(int width, int height) {
             super(width, height);
             mnemonics = new HashMap<Integer, String>();