Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2d052cb832 | ||
|
|
1e5f45dcc9 | ||
|
|
c9284d6222 | ||
|
|
2824fafc32 | ||
|
|
974abed278 | ||
|
|
47af792d62 | ||
|
|
0c7dba0ef1 |
File diff suppressed because it is too large
Load Diff
@@ -120,10 +120,22 @@ final class TerminalScreenBuffer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CharSequence render() {
|
CharSequence render() {
|
||||||
|
return renderRows(0, rows);
|
||||||
|
}
|
||||||
|
|
||||||
|
CharSequence renderBody() {
|
||||||
|
return renderRows(0, Math.max(0, rows - 1));
|
||||||
|
}
|
||||||
|
|
||||||
|
CharSequence renderStatusLine() {
|
||||||
|
return renderRows(Math.max(0, rows - 1), rows);
|
||||||
|
}
|
||||||
|
|
||||||
|
private CharSequence renderRows(int startRow, int endRow) {
|
||||||
SpannableStringBuilder output = new SpannableStringBuilder();
|
SpannableStringBuilder output = new SpannableStringBuilder();
|
||||||
for (int row = 0; row < rows; row++) {
|
for (int row = startRow; row < endRow; row++) {
|
||||||
appendRow(output, row);
|
appendRow(output, row);
|
||||||
if (row + 1 < rows) {
|
if (row + 1 < endRow) {
|
||||||
output.append('\n');
|
output.append('\n');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user