transcendental-lisp/src/terminal/ControlSequenceHandler.java
Mike Cifelli 38ab1144fb Clean up terminal code and unit tests
The terminal unit tests were updated so that they don't rely on an
arbitrary delay.
2017-03-19 12:54:35 -04:00

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
}
}