use of jline.UnixTerminal in project graal by oracle.
the class JLineSubstitutions method create.
@SuppressWarnings("unused")
@Substitute
public static Terminal create(String ttyDevice) {
Terminal t;
try {
t = new UnixTerminal();
t.init();
} catch (Exception e) {
Log.error("Failed to construct terminal; falling back to UnsupportedTerminal", e);
t = new UnsupportedTerminal();
}
Log.debug("Created Terminal: ", t);
return t;
}
Aggregations