diff src/de/mud/terminal/vt320.java @ 69:294435151b0c tn5250

use 5250 encryption config entry
author Carl Byington <carl@five-ten-sg.com>
date Fri, 13 Jun 2014 19:06:01 -0700
parents 556c387889b9
children 7ae9b0c382ec
line wrap: on
line diff
--- a/src/de/mud/terminal/vt320.java	Fri Jun 13 16:24:59 2014 -0700
+++ b/src/de/mud/terminal/vt320.java	Fri Jun 13 19:06:01 2014 -0700
@@ -66,6 +66,17 @@
     }
 
     /**
+     * inject field contents as if typed
+     */
+    public void setField(int l, int c, char [] d) {
+        // ignore line and column, just send the bytes to the host.
+        int n = d.length;
+        byte [] b = new byte [n];
+        for (int i=0; i<n; i++) b[i] = c[i] & 0x00ff;
+        write(b);
+    }
+
+    /**
      * Play the beep sound ...
      */
     public void beep() {