transcendental-lisp/src/terminal/ControlSequenceHandler.java

26 lines
480 B
Java
Raw Normal View History

package terminal;
import static terminal.ControlSequenceHandler.Command.SGR;
class ControlSequenceHandler {
2017-03-20 11:18:36 -04:00
public static final boolean isEscape(char c) {
return c == '\u001B';
}
2017-03-20 11:18:36 -04:00
private boolean inControlSequence;
private int code;
private Command command;
public ControlSequenceHandler() {
this.inControlSequence = false;
this.code = 0;
this.command = SGR;
}
2017-03-20 11:18:36 -04:00
public static enum Command {
SGR
}
}