Mercurial > 510Connectbot
changeset 41:9621ac4dd5eb tn5250
start tn5250 integration
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 10 Jun 2014 17:40:09 -0700 |
parents | ecdbff49182c |
children | 7ac846a07ed4 |
files | src/de/mud/terminal/VDUBuffer.java src/de/mud/terminal/vt320.java src/org/tn5250j/framework/tn5250/Screen5250.java |
diffstat | 3 files changed, 8 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/de/mud/terminal/VDUBuffer.java Tue Jun 10 17:26:53 2014 -0700 +++ b/src/de/mud/terminal/VDUBuffer.java Tue Jun 10 17:40:09 2014 -0700 @@ -1,7 +1,7 @@ /* * This file is part of "JTA - Telnet/SSH for the JAVA(tm) platform". * - * (c) Matthias L. Jugel, Marcus Mei�ner 1996-2005. All Rights Reserved. + * (c) Matthias L. Jugel, Marcus Meißner 1996-2005. All Rights Reserved. * * Please visit http://javatelnet.org/ for updates and contact. * @@ -37,8 +37,8 @@ */ public class VDUBuffer { - /** The current version id tag */ - public final static String ID = "$Id: VDUBuffer.java 503 2005-10-24 07:34:13Z marcus $"; + /** a generic display that should redraw on demand */ + protected VDUDisplay display; /** Enable debug messages. */ public final static int debug = 0; @@ -862,9 +862,6 @@ // return value; // } - /** a generic display that should redraw on demand */ - protected VDUDisplay display; - public void setDisplay(VDUDisplay display) { this.display = display; }
--- a/src/de/mud/terminal/vt320.java Tue Jun 10 17:26:53 2014 -0700 +++ b/src/de/mud/terminal/vt320.java Tue Jun 10 17:40:09 2014 -0700 @@ -78,6 +78,10 @@ /* do nothing by default */ } + public void redrawPassthru() { + redraw(); // VDUBuffer.redraw is protected + } + /** * Convenience function for putString(char[], int, int) */
--- a/src/org/tn5250j/framework/tn5250/Screen5250.java Tue Jun 10 17:26:53 2014 -0700 +++ b/src/org/tn5250j/framework/tn5250/Screen5250.java Tue Jun 10 17:40:09 2014 -0700 @@ -3816,7 +3816,7 @@ buffer.putChar(c, r, ch, 0); } } - buffer.redraw(); + buffer.redrawPassthru(); dirtyScreen.setBounds(lenScreen,0,0,0); }