1 /* 2 * Copyright (c) 2002-2012, the original author or authors. 3 * 4 * This software is distributable under the BSD license. See the terms of the 5 * BSD license in the documentation provided with this software. 6 * 7 * http://www.opensource.org/licenses/bsd-license.php 8 */ 9 package jline; 10 11 import java.io.IOException; 12 import java.io.InputStream; 13 import java.io.OutputStream; 14 15 import jline.internal.Log; 16 import jline.internal.ShutdownHooks; 17 import jline.internal.ShutdownHooks.Task; 18 19 /** 20 * Provides support for {@link Terminal} instances. 21 * 22 * @author <a href="mailto:jason@planet57.com">Jason Dillon</a> 23 * @since 2.0 24 */ 25 public abstract class TerminalSupport 26 implements Terminal 27 { 28 public static final int DEFAULT_WIDTH = 80; 29 30 public static final int DEFAULT_HEIGHT = 24; 31 32 private Task shutdownTask; 33 34 private boolean supported; 35 36 private boolean echoEnabled; 37 | 1 /* 2 * Copyright (c) 2002-2012, the original author or authors. 3 * 4 * This software is distributable under the BSD license. See the terms of the 5 * BSD license in the documentation provided with this software. 6 * 7 * http://www.opensource.org/licenses/bsd-license.php 8 */ 9 package jdk.internal.jline; 10 11 import java.io.IOException; 12 import java.io.InputStream; 13 import java.io.OutputStream; 14 15 import jdk.internal.jline.internal.Log; 16 import jdk.internal.jline.internal.ShutdownHooks; 17 import jdk.internal.jline.internal.ShutdownHooks.Task; 18 19 /** 20 * Provides support for {@link Terminal} instances. 21 * 22 * @author <a href="mailto:jason@planet57.com">Jason Dillon</a> 23 * @since 2.0 24 */ 25 public abstract class TerminalSupport 26 implements Terminal 27 { 28 public static final int DEFAULT_WIDTH = 80; 29 30 public static final int DEFAULT_HEIGHT = 24; 31 32 private Task shutdownTask; 33 34 private boolean supported; 35 36 private boolean echoEnabled; 37 |