< prev index next >

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

Print this page

        

*** 4,33 **** * 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.internal; import java.io.ByteArrayOutputStream; import java.io.Closeable; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.text.MessageFormat; import java.util.regex.Matcher; import java.util.regex.Pattern; ! import static jline.internal.Preconditions.checkNotNull; /** * Provides access to terminal line settings via <tt>stty</tt>. * * @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a> * @author <a href="mailto:dwkemp@gmail.com">Dale Kemp</a> * @author <a href="mailto:jason@planet57.com">Jason Dillon</a> ! * @author <a href="mailto:jbonofre@apache.org">Jean-Baptiste Onofré</a> * @since 2.0 */ public final class TerminalLineSettings { public static final String JLINE_STTY = "jline.stty"; --- 4,33 ---- * 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.internal; import java.io.ByteArrayOutputStream; import java.io.Closeable; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.text.MessageFormat; import java.util.regex.Matcher; import java.util.regex.Pattern; ! import static jdk.internal.jline.internal.Preconditions.checkNotNull; /** * Provides access to terminal line settings via <tt>stty</tt>. * * @author <a href="mailto:mwp1@cornell.edu">Marc Prud'hommeaux</a> * @author <a href="mailto:dwkemp@gmail.com">Dale Kemp</a> * @author <a href="mailto:jason@planet57.com">Jason Dillon</a> ! * @author <a href="mailto:jbonofre@apache.org">Jean-Baptiste Onofr\u00E9</a> * @since 2.0 */ public final class TerminalLineSettings { public static final String JLINE_STTY = "jline.stty";
*** 107,117 **** // always update the last fetched time and try to parse the output if (currentTime - configLastFetched > 1000) { configLastFetched = currentTime; } ! return this.getProperty(name, config); } /** * <p> * Parses a stty output (provided by stty -a) and return the value of a given property. --- 107,117 ---- // always update the last fetched time and try to parse the output if (currentTime - configLastFetched > 1000) { configLastFetched = currentTime; } ! return getProperty(name, config); } /** * <p> * Parses a stty output (provided by stty -a) and return the value of a given property.
< prev index next >