Class VirtualConsole

    • Field Detail

      • height

        protected int height
      • width

        protected int width
      • echo

        protected boolean echo
    • Method Detail

      • reset

        public void reset()
      • read

        public int read()
        Description copied from class: Console
        Returns the next character from input stream of the console. In some cases check for ALT key pressed and return character + 1000, see JLine ConsoleReader In case of error a value lesser 0 will be returned.
        Specified by:
        read in class Console
        Returns:
        pressed key
      • isSupportSize

        public boolean isSupportSize()
        Description copied from class: Console
        Return true if the console knows about the current size of the terminal.
        Specified by:
        isSupportSize in class Console
        Returns:
        True if support size
      • getWidth

        public int getWidth()
        Specified by:
        getWidth in class Console
      • resize

        public void resize​(int width,
                           int height)
      • setCursor

        public void setCursor​(int x,
                              int y)
        Specified by:
        setCursor in class Console
      • setBlink

        public void setBlink​(boolean blink)
        Specified by:
        setBlink in class Console
      • isBlink

        public boolean isBlink()
        Specified by:
        isBlink in class Console
      • setBold

        public void setBold​(boolean bold)
        Specified by:
        setBold in class Console
      • isBold

        public boolean isBold()
        Specified by:
        isBold in class Console
      • getMonoDisplayAsString

        public String getMonoDisplayAsString()
      • writeChar

        protected void writeChar​(char c)
      • cleanup

        public void cleanup()
        Specified by:
        cleanup in class Console