Package jline

Class NoInterruptUnixTerminal

    • Constructor Detail

      • NoInterruptUnixTerminal

        public NoInterruptUnixTerminal()
                                throws java.lang.Exception
        Throws:
        java.lang.Exception
    • Method Detail

      • init

        public void init()
                  throws java.lang.Exception
        Description copied from class: UnixTerminal
        Remove line-buffered input by invoking "stty -icanon min 1" against the current terminal.
        Specified by:
        init in interface Terminal
        Overrides:
        init in class UnixTerminal
        Throws:
        java.lang.Exception
      • restore

        public void restore()
                     throws java.lang.Exception
        Description copied from class: UnixTerminal
        Restore the original terminal configuration, which can be used when shutting down the console reader. The ConsoleReader cannot be used after calling this method.
        Specified by:
        restore in interface Terminal
        Overrides:
        restore in class UnixTerminal
        Throws:
        java.lang.Exception