if (handler != null) {
stdinHandler = data -> context.runOnContext(v -> handler.handle(data));
} else {
stdinHandler = null;
}
<BUG>if (foreground && stdinHandler != null) {
</BUG>
tty.stdinHandler(stdinHandler);
}
return this;

if (handler != null) {
stdinHandler = data -> context.runOnContext(v -> handler.handle(data));
} else {
stdinHandler = null;
}
if (processForeground && stdinHandler != null) {
tty.stdinHandler(stdinHandler);
}
return this;
