Class PlainTerminalInput
java.lang.Object
net.rubygrapefruit.platform.internal.AbstractWindowsTerminalInput
net.rubygrapefruit.platform.internal.PlainTerminalInput
- All Implemented Interfaces:
TerminalInput
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionrawMode()Switches this terminal to raw mode.voidread(TerminalInputListener listener) Reads the next character or control keys from this terminal.reset()Resets this terminal to its default mode.booleanReturns true if this terminal supports setting raw mode.toString()Methods inherited from class net.rubygrapefruit.platform.internal.AbstractWindowsTerminalInput
getInputStream
-
Constructor Details
-
PlainTerminalInput
public PlainTerminalInput()
-
-
Method Details
-
toString
-
read
Description copied from interface:TerminalInputReads the next character or control keys from this terminal. Blocks until an event is available.- Throws:
NativeException- On failure.
-
supportsRawMode
public boolean supportsRawMode()Description copied from interface:TerminalInputReturns true if this terminal supports setting raw mode. -
rawMode
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
Description copied from interface:TerminalInputResets this terminal to its default mode.- Throws:
NativeException- On failure.
-