Mike Cifelli
38ab1144fb
The terminal unit tests were updated so that they don't rely on an arbitrary delay.
27 lines
540 B
Java
27 lines
540 B
Java
package terminal;
|
|
|
|
import static terminal.ControlSequenceHandler.Command.SGR;
|
|
|
|
class ControlSequenceHandler {
|
|
|
|
public static final boolean isEscape(char c) {
|
|
return c == '\u001B';
|
|
}
|
|
|
|
private boolean inControlSequence;
|
|
private int code;
|
|
private Command command;
|
|
|
|
public ControlSequenceHandler() {
|
|
// TODO Auto-generated constructor stub
|
|
this.inControlSequence = false;
|
|
this.code = 0;
|
|
this.command = SGR;
|
|
}
|
|
|
|
public static enum Command {
|
|
SGR
|
|
}
|
|
|
|
}
|