fix: made it so that the TERM variable is shared

now commands like clear work
This commit is contained in:
Andrew Rioux 2023-05-09 21:26:53 -04:00
parent 57cd4aa2be
commit d5e78b5746
Signed by: andrew.rioux
GPG Key ID: 9B8BAC47C17ABB94

View File

@ -162,6 +162,7 @@ async fn handle_command(
let Ok(mut child) = (process::Command::new("sh")
.arg("-c")
.arg(cmd)
.env("TERM", "screen")
.stdin(Stdio::null())
.stdout(Stdio::piped())
.stderr(Stdio::piped()))