public interface CommandProcess extends Tty
| Modifier and Type | Method and Description | 
|---|---|
List<String> | 
args()  | 
List<CliToken> | 
argsTokens()  | 
CommandProcess | 
backgroundHandler(Handler<Void> handler)
Set a background handler, this handler is called when the command is running and put to background. 
 | 
CommandLine | 
commandLine()  | 
void | 
end()
End the process with the exit status 0 
 | 
void | 
end(int status)
End the process. 
 | 
CommandProcess | 
endHandler(Handler<Void> handler)
Set an end handler, this handler is called when the command is ended, for instance the command is running
 and the shell closes. 
 | 
CommandProcess | 
foregroundHandler(Handler<Void> handler)
Set a foreground handler, this handler is called when the command is running and put to foreground. 
 | 
CommandProcess | 
interruptHandler(Handler<Void> handler)
Set an interrupt handler, this handler is called when the command is interrupted, for instance user
 press  
Ctrl-C. | 
boolean | 
isForeground()  | 
CommandProcess | 
resizehandler(Handler<Void> handler)
Set a resize handler, the handler is called when the tty size changes. 
 | 
CommandProcess | 
resumeHandler(Handler<Void> handler)
Set a resume handler, this handler is called when the command is resumed, for instance user
 types  
bg or fg to resume the command. | 
Session | 
session()  | 
CommandProcess | 
stdinHandler(Handler<String> handler)
Set a stream handler on the standard input to read the data. 
 | 
CommandProcess | 
suspendHandler(Handler<Void> handler)
Set a suspend handler, this handler is called when the command is suspended, for instance user
 press  
Ctrl-Z. | 
Vertx | 
vertx()  | 
CommandProcess | 
write(String data)
Write some text to the standard output. 
 | 
Vertx vertx()
CommandLine commandLine()
Session session()
boolean isForeground()
CommandProcess stdinHandler(Handler<String> handler)
TtystdinHandler in interface Ttyhandler - the standard inputCommandProcess interruptHandler(Handler<Void> handler)
Ctrl-C.handler - the interrupt handlerCommandProcess suspendHandler(Handler<Void> handler)
Ctrl-Z.handler - the interrupt handlerCommandProcess resumeHandler(Handler<Void> handler)
bg or fg to resume the command.handler - the interrupt handlerCommandProcess endHandler(Handler<Void> handler)
handler - the end handlerCommandProcess write(String data)
CommandProcess backgroundHandler(Handler<Void> handler)
handler - the background handlerCommandProcess foregroundHandler(Handler<Void> handler)
handler - the foreground handlerCommandProcess resizehandler(Handler<Void> handler)
Ttyresizehandler in interface Ttyhandler - the resize handlervoid end()
void end(int status)
status - the exit status.Copyright © 2022 Eclipse. All rights reserved.