comparison src/de/mud/terminal/VDUBuffer.java @ 308:42b15aaa7ac7 ganymed

merge
author Carl Byington <carl@five-ten-sg.com>
date Wed, 30 Jul 2014 14:21:50 -0700
parents 071eccdff8ea
children
comparison
equal deleted inserted replaced
306:90e47d99ea54 308:42b15aaa7ac7
157 * @see #redraw 157 * @see #redraw
158 */ 158 */
159 159
160 public void putChar(int c, int l, char ch, int attributes) { 160 public void putChar(int c, int l, char ch, int attributes) {
161 int ll = screenBase + l; 161 int ll = screenBase + l;
162
162 if ((ll >= bufSize) || (c >= width)) return; // ignore characters outside our buffer 163 if ((ll >= bufSize) || (c >= width)) return; // ignore characters outside our buffer
164
163 charArray[ll][c] = ch; 165 charArray[ll][c] = ch;
164 charAttributes[ll][c] = attributes; 166 charAttributes[ll][c] = attributes;
165 167
166 if (l < height) 168 if (l < height)
167 update[l + 1] = true; 169 update[l + 1] = true;
586 * Puts the cursor at the specified position. 588 * Puts the cursor at the specified position.
587 * @param c column 589 * @param c column
588 * @param l line 590 * @param l line
589 */ 591 */
590 public void setCursorPosition(int c, int l) { 592 public void setCursorPosition(int c, int l) {
591 cursorX = (c > width-1) ? width-1 : c; 593 cursorX = (c > width - 1) ? width - 1 : c;
592 cursorY = (l > height-1) ? height-1 : l; 594 cursorY = (l > height - 1) ? height - 1 : l;
593 } 595 }
594 596
595 /** 597 /**
596 * Get the current column of the cursor position. 598 * Get the current column of the cursor position.
597 */ 599 */