Package jline

Class UnsupportedTerminal

    • Constructor Detail

      • UnsupportedTerminal

        public UnsupportedTerminal()
    • Method Detail

      • initializeTerminal

        public void initializeTerminal()
        Description copied from class: Terminal
        Initialize any system settings that are required for the console to be able to handle input correctly, such as setting tabtop, buffered input, and character echo.
        Specified by:
        initializeTerminal in class Terminal
      • getEcho

        public boolean getEcho()
        Description copied from class: Terminal
        Returns true if the terminal will echo all characters type.
        Specified by:
        getEcho in class Terminal
      • isEchoEnabled

        public boolean isEchoEnabled()
        Description copied from class: Terminal
        Returns false if character echoing is disabled.
        Specified by:
        isEchoEnabled in class Terminal
      • enableEcho

        public void enableEcho()
        Description copied from class: Terminal
        Enable character echoing. This can be used to re-enable character if the ConsoleReader is no longer being used.
        Specified by:
        enableEcho in class Terminal
      • disableEcho

        public void disableEcho()
        Description copied from class: Terminal
        Disable character echoing. This can be used to manually re-enable character if the ConsoleReader has been disabled.
        Specified by:
        disableEcho in class Terminal
      • getTerminalWidth

        public int getTerminalWidth()
        Always returng 80, since we can't access this info on Windows.
        Specified by:
        getTerminalWidth in class Terminal
      • getTerminalHeight

        public int getTerminalHeight()
        Always returng 24, since we can't access this info on Windows.
        Specified by:
        getTerminalHeight in class Terminal
      • isSupported

        public boolean isSupported()
        Description copied from class: Terminal
        Returns true if this terminal is capable of initializing the terminal to use jline.
        Specified by:
        isSupported in class Terminal
      • beforeReadLine

        public void beforeReadLine​(ConsoleReader reader,
                                   java.lang.String prompt,
                                   java.lang.Character mask)
        Description copied from class: Terminal
        Invokes before the console reads a line with the prompt and mask.
        Overrides:
        beforeReadLine in class Terminal
      • afterReadLine

        public void afterReadLine​(ConsoleReader reader,
                                  java.lang.String prompt,
                                  java.lang.Character mask)
        Description copied from class: Terminal
        Invokes after the console reads a line with the prompt and mask.
        Overrides:
        afterReadLine in class Terminal