Package jline

Examples of jline.WindowsTerminal$ReplayPrefixOneCharInputStream


    private ConsoleReader createAnsiWindowsReader() throws Exception {
        // Get decorated OutputStream that parses ANSI-codes
        final PrintStream ansiOut = (PrintStream) ClassUtils
                .getClass(JLineShell.class.getClassLoader(),
                        ANSI_CONSOLE_CLASSNAME).getMethod("out").invoke(null);
        final WindowsTerminal ansiTerminal = new WindowsTerminal() {
            @Override
            public boolean isANSISupported() {
                return true;
            }
        };
        ansiTerminal.initializeTerminal();
        // Make sure to reset the original shell's colors on shutdown by closing
        // the stream
        statusListener = new ShellStatusListener() {
            public void onShellStatusChange(final ShellStatus oldStatus,
                    final ShellStatus newStatus) {
View Full Code Here


  protected ConsoleReader createAnsiWindowsReader() throws Exception {
    // Get decorated OutputStream that parses ANSI-codes
    final PrintStream ansiOut = (PrintStream) ClassUtils
        .forName(ANSI_CONSOLE_CLASSNAME, JLineShell.class.getClassLoader()).getMethod("out").invoke(null);
    WindowsTerminal ansiTerminal = new WindowsTerminal() {
      @Override
      public synchronized boolean isAnsiSupported() {
        return true;
      }
    };
    ansiTerminal.init();
    // Make sure to reset the original shell's colors on shutdown by closing the stream
    statusListener = new ShellStatusListener() {
      public void onShellStatusChange(final ShellStatus oldStatus, final ShellStatus newStatus) {
        if (newStatus.getStatus().equals(Status.SHUTTING_DOWN)) {
          ansiOut.close();
View Full Code Here

TOP

Related Classes of jline.WindowsTerminal$ReplayPrefixOneCharInputStream

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.