public class TerminalBuffer extends Object
| Constructor and Description |
|---|
TerminalBuffer(Terminal terminal) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Collection<String> lines) |
void |
add(String... lines) |
void |
clear()
Clear the entire buffer.
|
void |
clearLast(int N)
Clear the last N lines.
|
int |
count() |
void |
update(int i,
String line)
Update a specific line.
|
public TerminalBuffer(Terminal terminal)
public int count()
public void add(String... lines)
public void add(Collection<String> lines)
public void update(int i,
String line)
i - The line index.line - The new line content.public void clear()
public void clearLast(int N)
N - Number of lines to clear.Copyright © 2016. All rights reserved.