We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d1f4ee9 commit 8087d2aCopy full SHA for 8087d2a
1 file changed
anycode-backend/src/terminal.rs
@@ -173,12 +173,18 @@ mod tests {
173
async fn test_terminal_echo() -> Result<()> {
174
let (tx, mut rx) = mpsc::channel::<String>(10);
175
176
+ let shell = if cfg!(target_os = "windows") {
177
+ "cmd.exe".to_string()
178
+ } else {
179
+ "cat".to_string()
180
+ };
181
+
182
let terminal = Terminal::new(
183
"test".to_string(),
184
"session1".to_string(),
185
30,
186
80,
- Some("bash".to_string()),
187
+ Some(shell),
188
None,
189
tx,
190
)
0 commit comments