Package io.quarkus.deployment.console
Class DelegateConnection
java.lang.Object
io.quarkus.deployment.console.DelegateConnection
- All Implemented Interfaces:
AutoCloseable
,org.aesh.terminal.Connection
Fake connection that can be used to stop a running aesh instance
If you create a console with one of these and then close it Aesh will assume the program is done and exit
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
close
(int exit) org.aesh.terminal.Device
device()
org.aesh.terminal.Attributes
org.aesh.terminal.Attributes
org.aesh.terminal.tty.Point
Consumer<org.aesh.terminal.tty.Signal>
Consumer<org.aesh.terminal.tty.Size>
Consumer<int[]>
void
void
boolean
void
setAttributes
(org.aesh.terminal.Attributes attributes) void
setCloseHandler
(Consumer<Void> consumer) void
setSignalHandler
(Consumer<org.aesh.terminal.tty.Signal> consumer) void
setSizeHandler
(Consumer<org.aesh.terminal.tty.Size> consumer) void
setStdinHandler
(Consumer<int[]> consumer) org.aesh.terminal.tty.Size
size()
Consumer<int[]>
boolean
org.aesh.terminal.Connection
-
Field Details
-
closed
volatile boolean closed
-
-
Constructor Details
-
DelegateConnection
public DelegateConnection(org.aesh.terminal.Connection delegate)
-
-
Method Details
-
device
public org.aesh.terminal.Device device()- Specified by:
device
in interfaceorg.aesh.terminal.Connection
-
size
public org.aesh.terminal.tty.Size size()- Specified by:
size
in interfaceorg.aesh.terminal.Connection
-
getSizeHandler
- Specified by:
getSizeHandler
in interfaceorg.aesh.terminal.Connection
-
setSizeHandler
- Specified by:
setSizeHandler
in interfaceorg.aesh.terminal.Connection
-
getSignalHandler
- Specified by:
getSignalHandler
in interfaceorg.aesh.terminal.Connection
-
setSignalHandler
- Specified by:
setSignalHandler
in interfaceorg.aesh.terminal.Connection
-
getStdinHandler
- Specified by:
getStdinHandler
in interfaceorg.aesh.terminal.Connection
-
setStdinHandler
- Specified by:
setStdinHandler
in interfaceorg.aesh.terminal.Connection
-
stdoutHandler
- Specified by:
stdoutHandler
in interfaceorg.aesh.terminal.Connection
-
setCloseHandler
- Specified by:
setCloseHandler
in interfaceorg.aesh.terminal.Connection
-
getCloseHandler
- Specified by:
getCloseHandler
in interfaceorg.aesh.terminal.Connection
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceorg.aesh.terminal.Connection
-
openBlocking
public void openBlocking()- Specified by:
openBlocking
in interfaceorg.aesh.terminal.Connection
-
openNonBlocking
public void openNonBlocking()- Specified by:
openNonBlocking
in interfaceorg.aesh.terminal.Connection
-
put
- Specified by:
put
in interfaceorg.aesh.terminal.Connection
-
getAttributes
public org.aesh.terminal.Attributes getAttributes()- Specified by:
getAttributes
in interfaceorg.aesh.terminal.Connection
-
setAttributes
public void setAttributes(org.aesh.terminal.Attributes attributes) - Specified by:
setAttributes
in interfaceorg.aesh.terminal.Connection
-
inputEncoding
- Specified by:
inputEncoding
in interfaceorg.aesh.terminal.Connection
-
outputEncoding
- Specified by:
outputEncoding
in interfaceorg.aesh.terminal.Connection
-
supportsAnsi
public boolean supportsAnsi()- Specified by:
supportsAnsi
in interfaceorg.aesh.terminal.Connection
-
close
public void close(int exit) - Specified by:
close
in interfaceorg.aesh.terminal.Connection
-
write
- Specified by:
write
in interfaceorg.aesh.terminal.Connection
-
enterRawMode
public org.aesh.terminal.Attributes enterRawMode()- Specified by:
enterRawMode
in interfaceorg.aesh.terminal.Connection
-
getCursorPosition
public org.aesh.terminal.tty.Point getCursorPosition()- Specified by:
getCursorPosition
in interfaceorg.aesh.terminal.Connection
-