< prev index next >

jdk/src/jdk.jline/share/classes/jdk/internal/jline/TerminalFactory.java

Print this page

        

*** 4,24 **** * This software is distributable under the BSD license. See the terms of the * BSD license in the documentation provided with this software. * * http://www.opensource.org/licenses/bsd-license.php */ ! package jline; import java.text.MessageFormat; import java.util.HashMap; import java.util.Map; ! import jline.internal.Configuration; ! import jline.internal.Log; ! import jline.internal.Preconditions; ! ! import static jline.internal.Preconditions.checkNotNull; /** * Creates terminal instances. * * @author <a href="mailto:jason@planet57.com">Jason Dillon</a> --- 4,23 ---- * This software is distributable under the BSD license. See the terms of the * BSD license in the documentation provided with this software. * * http://www.opensource.org/licenses/bsd-license.php */ ! package jdk.internal.jline; import java.text.MessageFormat; import java.util.HashMap; import java.util.Map; ! import jdk.internal.jline.internal.Configuration; ! import jdk.internal.jline.internal.Log; ! import jdk.internal.jline.internal.Preconditions; ! import static jdk.internal.jline.internal.Preconditions.checkNotNull; /** * Creates terminal instances. * * @author <a href="mailto:jason@planet57.com">Jason Dillon</a>
*** 147,157 **** } private static final Map<Flavor, Class<? extends Terminal>> FLAVORS = new HashMap<Flavor, Class<? extends Terminal>>(); static { ! registerFlavor(Flavor.WINDOWS, AnsiWindowsTerminal.class); registerFlavor(Flavor.UNIX, UnixTerminal.class); } public static synchronized Terminal get() { if (term == null) { --- 146,157 ---- } private static final Map<Flavor, Class<? extends Terminal>> FLAVORS = new HashMap<Flavor, Class<? extends Terminal>>(); static { ! // registerFlavor(Flavor.WINDOWS, AnsiWindowsTerminal.class); ! registerFlavor(Flavor.WINDOWS, WindowsTerminal.class); registerFlavor(Flavor.UNIX, UnixTerminal.class); } public static synchronized Terminal get() { if (term == null) {
< prev index next >