Class PosixTerminals
- java.lang.Object
-
- net.rubygrapefruit.platform.internal.AbstractTerminals
-
- net.rubygrapefruit.platform.internal.PosixTerminals
-
- All Implemented Interfaces:
NativeIntegration,Terminals
public class PosixTerminals extends AbstractTerminals
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.rubygrapefruit.platform.terminal.Terminals
Terminals.Output
-
-
Constructor Summary
Constructors Constructor Description PosixTerminals()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected TerminalInputcreateInput()protected AbstractTerminalcreateTerminal(Terminals.Output output)booleanisTerminal(Terminals.Output output)Returns true if the given output is attached to a terminal.booleanisTerminalInput()Returns true if the system input is attached to a terminal.-
Methods inherited from class net.rubygrapefruit.platform.internal.AbstractTerminals
getTerminal, getTerminalInput, withAnsiOutput
-
-
-
-
Method Detail
-
isTerminal
public boolean isTerminal(Terminals.Output output)
Description copied from interface:TerminalsReturns true if the given output is attached to a terminal.
-
isTerminalInput
public boolean isTerminalInput() throws NativeExceptionDescription copied from interface:TerminalsReturns true if the system input is attached to a terminal.- Throws:
NativeException
-
createInput
protected TerminalInput createInput()
- Specified by:
createInputin classAbstractTerminals
-
createTerminal
protected AbstractTerminal createTerminal(Terminals.Output output)
- Specified by:
createTerminalin classAbstractTerminals
-
-