This commit is contained in:
parent
abc4367cdd
commit
f5e9fe8584
@ -66,6 +66,7 @@ fn run_inner(command_request: &CommandRequest) -> Result<CommandResult> {
|
|||||||
|
|
||||||
let mut command = Command::new(&request.command);
|
let mut command = Command::new(&request.command);
|
||||||
command
|
command
|
||||||
|
.stdin(Stdio::piped())
|
||||||
.stdout(Stdio::piped())
|
.stdout(Stdio::piped())
|
||||||
.stderr(Stdio::piped())
|
.stderr(Stdio::piped())
|
||||||
.args(&request.hidden_options);
|
.args(&request.hidden_options);
|
||||||
@ -84,8 +85,6 @@ fn run_inner(command_request: &CommandRequest) -> Result<CommandResult> {
|
|||||||
command.arg(&request.cmdline);
|
command.arg(&request.cmdline);
|
||||||
}
|
}
|
||||||
|
|
||||||
command.stdin(Stdio::piped());
|
|
||||||
|
|
||||||
std::mem::drop(request);
|
std::mem::drop(request);
|
||||||
|
|
||||||
command.spawn()
|
command.spawn()
|
||||||
|
@ -86,6 +86,12 @@ pub fn draw<B: Backend>(f: &mut Frame<B>, app: &App) {
|
|||||||
// Render the output in the outpout region
|
// Render the output in the outpout region
|
||||||
if let Some(ref command_result) = command_options.command_result {
|
if let Some(ref command_result) = command_options.command_result {
|
||||||
ui_output(f, chunks[1], &mut render_states, command_result);
|
ui_output(f, chunks[1], &mut render_states, command_result);
|
||||||
|
} else {
|
||||||
|
f.render_widget(
|
||||||
|
Block::default().title("Output")
|
||||||
|
.borders(Borders::ALL),
|
||||||
|
chunks[1]
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
f.set_cursor(
|
f.set_cursor(
|
||||||
|
Loading…
Reference in New Issue
Block a user