We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb50b6a commit fa67ff1Copy full SHA for fa67ff1
1 file changed
devolutions-session/src/dvc/task.rs
@@ -639,7 +639,11 @@ impl MessageProcessor {
639
self.ensure_session_id_free(winps_msg.session_id()).await?;
640
641
let tmp_file = TmpFileGuard::new("ps1")?;
642
- tmp_file.write_content(winps_msg.command())?;
+
643
+ // Suppress ANSI escape codes in pwsh output.
644
+ let mut script = "$PSStyle.OutputRendering = 'PlainText';\n".to_owned();
645
+ script.push_str(winps_msg.command());
646
+ tmp_file.write_content(&script)?;
647
648
let mut params = Vec::new();
649
0 commit comments