feat(terminal): add runtime renderer switch

This commit is contained in:
zhangheng
2026-06-24 15:31:58 +08:00
parent 7ee8d7bde1
commit 1334685fac
5 changed files with 171 additions and 7 deletions

View File

@@ -38,5 +38,11 @@ instead:
npm run terminal:bench -- --url http://127.0.0.1:3100/rustui/terminal --browser-executable /usr/bin/google-chrome
```
Compare renderer modes with:
```bash
npm run terminal:bench -- --url http://127.0.0.1:3100/rustui/terminal --renderer canvas --browser-executable /usr/bin/google-chrome
```
It writes `target/terminal-bench/terminal-bench.json` plus screenshots when
Playwright is available in the workspace.