comparison src/de/mud/terminal/VDUBuffer.java @ 79:01d939969b10

merge tn5250 branch into default
author Carl Byington <carl@five-ten-sg.com>
date Mon, 16 Jun 2014 08:24:00 -0700
parents bf01d1eec5c6
children 446dbcf606eb
comparison
equal deleted inserted replaced
19:b3d0d806cbe2 79:01d939969b10
1 /* 1 /*
2 * This file is part of "JTA - Telnet/SSH for the JAVA(tm) platform". 2 * This file is part of "JTA - Telnet/SSH for the JAVA(tm) platform".
3 * 3 *
4 * (c) Matthias L. Jugel, Marcus Mei�ner 1996-2005. All Rights Reserved. 4 * (c) Matthias L. Jugel, Marcus Meißner 1996-2005. All Rights Reserved.
5 * 5 *
6 * Please visit http://javatelnet.org/ for updates and contact. 6 * Please visit http://javatelnet.org/ for updates and contact.
7 * 7 *
8 * --LICENSE NOTICE-- 8 * --LICENSE NOTICE--
9 * This program is free software; you can redistribute it and/or 9 * This program is free software; you can redistribute it and/or
35 * @author Matthias L. Jugel, Marcus Meißner 35 * @author Matthias L. Jugel, Marcus Meißner
36 * @version $Id: VDUBuffer.java 503 2005-10-24 07:34:13Z marcus $ 36 * @version $Id: VDUBuffer.java 503 2005-10-24 07:34:13Z marcus $
37 */ 37 */
38 public class VDUBuffer { 38 public class VDUBuffer {
39 39
40 /** The current version id tag */ 40 /** a generic display that should redraw on demand */
41 public final static String ID = "$Id: VDUBuffer.java 503 2005-10-24 07:34:13Z marcus $"; 41 protected VDUDisplay display;
42 42
43 /** Enable debug messages. */ 43 /** Enable debug messages. */
44 public final static int debug = 0; 44 public final static int debug = 0;
45 45
46 public int height, width; /* rows and columns */ 46 public int height, width; /* rows and columns */
97 /** how much to left shift the foreground color */ 97 /** how much to left shift the foreground color */
98 public final static int COLOR_FG_SHIFT = 5; 98 public final static int COLOR_FG_SHIFT = 5;
99 /** how much to left shift the background color */ 99 /** how much to left shift the background color */
100 public final static int COLOR_BG_SHIFT = 14; 100 public final static int COLOR_BG_SHIFT = 14;
101 /** color mask */ 101 /** color mask */
102 public final static int COLOR = 0x7fffe0; /* 0000 0000 0111 1111 1111 1111 1110 0000 */ 102 public final static int COLOR = 0x7fffe0; /* 0000 0000 0111 1111 1111 1111 1110 0000 */
103 /** foreground color mask */ 103 /** foreground color mask */
104 public final static int COLOR_FG = 0x3fe0; /* 0000 0000 0000 0000 0011 1111 1110 0000 */ 104 public final static int COLOR_FG = 0x003fe0; /* 0000 0000 0000 0000 0011 1111 1110 0000 */
105 /** background color mask */ 105 /** background color mask */
106 public final static int COLOR_BG = 0x7fc000; /* 0000 0000 0111 1111 1100 0000 0000 0000 */ 106 public final static int COLOR_BG = 0x7fc000; /* 0000 0000 0111 1111 1100 0000 0000 0000 */
107 107
108 /** 108 /**
109 * Create a new video display buffer with the passed width and height in 109 * Create a new video display buffer with the passed width and height in
110 * characters. 110 * characters.
111 * @param width the length of the character lines 111 * @param width the length of the character lines
860 // return upper; 860 // return upper;
861 // else 861 // else
862 // return value; 862 // return value;
863 // } 863 // }
864 864
865 /** a generic display that should redraw on demand */
866 protected VDUDisplay display;
867
868 public void setDisplay(VDUDisplay display) { 865 public void setDisplay(VDUDisplay display) {
869 this.display = display; 866 this.display = display;
870 } 867 }
871 868
872 /** 869 /**