Mercurial > 510Connectbot
comparison src/de/mud/terminal/VDUBuffer.java @ 125:6eab98e58bed
add more 5250 config items
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 19 Jun 2014 08:37:44 -0700 |
parents | 446dbcf606eb |
children | 071eccdff8ea |
comparison
equal
deleted
inserted
replaced
124:c29fd84dff5f | 125:6eab98e58bed |
---|---|
586 * Puts the cursor at the specified position. | 586 * Puts the cursor at the specified position. |
587 * @param c column | 587 * @param c column |
588 * @param l line | 588 * @param l line |
589 */ | 589 */ |
590 public void setCursorPosition(int c, int l) { | 590 public void setCursorPosition(int c, int l) { |
591 cursorX = min(width-1, c); | 591 cursorX = (c > width-1) ? width-1 : c; |
592 cursorY = min(height-1, l); | 592 cursorY = (l > height-1) ? height-1 : l; |
593 } | 593 } |
594 | 594 |
595 /** | 595 /** |
596 * Get the current column of the cursor position. | 596 * Get the current column of the cursor position. |
597 */ | 597 */ |