Class WindowsTerminalInput

java.lang.Object
net.rubygrapefruit.platform.internal.AbstractWindowsTerminalInput
net.rubygrapefruit.platform.internal.WindowsTerminalInput
All Implemented Interfaces:
TerminalInput

public class WindowsTerminalInput extends AbstractWindowsTerminalInput
  • Constructor Details

    • WindowsTerminalInput

      public WindowsTerminalInput()
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • read

      public void read(TerminalInputListener listener)
      Description copied from interface: TerminalInput
      Reads the next character or control keys from this terminal. Blocks until an event is available.
    • supportsRawMode

      public boolean supportsRawMode()
      Description copied from interface: TerminalInput
      Returns true if this terminal supports setting raw mode.
    • rawMode

      public TerminalInput rawMode() throws NativeException
      Description copied from interface: TerminalInput
      Switches this terminal to raw mode. Keys are delivered as they are typed, are not echoed and are not processed.
      Throws:
      NativeException - On failure, or when raw mode is not supported by this terminal.
    • reset

      public TerminalInput reset()
      Description copied from interface: TerminalInput
      Resets this terminal to its default mode.