interface CommandProcess : Tty
The command process provides interaction with the process of the command provided by Vert.x Shell.
Author
Julien Viet
abstract fun args(): MutableList<String> |
|
abstract fun argsTokens(): MutableList<CliToken> |
|
abstract fun backgroundHandler(handler: Handler<Void>): CommandProcess
Set a background handler, this handler is called when the command is running and put to background. |
|
abstract fun commandLine(): CommandLine |
|
abstract fun end(): Unit
End the process with the exit status 0 abstract fun end(status: Int): Unit
End the process. |
|
abstract fun endHandler(handler: Handler<Void>): CommandProcess
Set an end handler, this handler is called when the command is ended, for instance the command is running and the shell closes. |
|
abstract fun foregroundHandler(handler: Handler<Void>): CommandProcess
Set a foreground handler, this handler is called when the command is running and put to foreground. |
|
abstract fun interruptHandler(handler: Handler<Void>): CommandProcess
Set an interrupt handler, this handler is called when the command is interrupted, for instance user press |
|
abstract fun isForeground(): Boolean |
|
abstract fun resizehandler(handler: Handler<Void>): CommandProcess |
|
abstract fun resumeHandler(handler: Handler<Void>): CommandProcess
Set a resume handler, this handler is called when the command is resumed, for instance user types |
|
abstract fun session(): Session |
|
abstract fun stdinHandler(handler: Handler<String>): CommandProcess |
|
abstract fun suspendHandler(handler: Handler<Void>): CommandProcess
Set a suspend handler, this handler is called when the command is suspended, for instance user press |
|
abstract fun vertx(): Vertx |
|
abstract fun write(data: String): CommandProcess
Write some text to the standard output. |