feat(plugin): AutoCAD-compatible PAUSE, ENTER keyword, and command streaming

This commit is contained in:
yztink committed 2026-09-20 21:03:12 -07:00
1 parent fd2062bdec
commit fbedb3736e
8 files changed
+250 -3

No files matched your search

@@ -758,6 +758,20 @@ impl HostApi for V4PluginHostApi {
}
}
}
fn execute_command(&mut self, cmd: &str) -> bool {
match self.request(PluginRequest::ExecuteCommand(cmd.to_string())) {
Ok(PluginResponse::Bool(b)) => b,
Ok(other) => {
eprintln!("[plugin] unexpected ExecuteCommand response: {other:?}");
false
}
Err(e) => {
eprintln!("[plugin] ExecuteCommand failed: {e}");
false
}
}
}
}
#[cfg(test)]