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 Summary
Constructors Constructor Description WindowsTerminalInput()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TerminalInputrawMode()Switches this terminal to raw mode.voidread(TerminalInputListener listener)Reads the next character or control keys from this terminal.TerminalInputreset()Resets this terminal to its default mode.booleansupportsRawMode()Returns true if this terminal supports setting raw mode.java.lang.StringtoString()-
Methods inherited from class net.rubygrapefruit.platform.internal.AbstractWindowsTerminalInput
getInputStream
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
read
public void read(TerminalInputListener listener)
Description copied from interface:TerminalInputReads the next character or control keys from this terminal. Blocks until an event is available.
-
supportsRawMode
public boolean supportsRawMode()
Description copied from interface:TerminalInputReturns true if this terminal supports setting raw mode.
-
rawMode
public TerminalInput rawMode() throws NativeException
Description copied from interface:TerminalInputSwitches 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:TerminalInputResets this terminal to its default mode.
-
-