Search in sources :

Example 1 with UnixTerminal

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;
}
Also used : UnixTerminal(jline.UnixTerminal) UnsupportedTerminal(jline.UnsupportedTerminal) UnixTerminal(jline.UnixTerminal) Terminal(jline.Terminal) UnsupportedTerminal(jline.UnsupportedTerminal) IOException(java.io.IOException) Substitute(com.oracle.svm.core.annotate.Substitute)

Aggregations

Substitute (com.oracle.svm.core.annotate.Substitute)1 IOException (java.io.IOException)1 Terminal (jline.Terminal)1 UnixTerminal (jline.UnixTerminal)1 UnsupportedTerminal (jline.UnsupportedTerminal)1