Download packages/tui/src/util/renderer.ts from SaylorTwift/opencode: direct link, hf CLI and curl.
- Browser
- Download file 251 Bytes
-
https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/tui/src/util/renderer.ts
- Command line
-
hf download hf://SaylorTwift/opencode/packages/tui/src/util/renderer.ts
-
curl -L -o renderer.ts https://huggingface.co/SaylorTwift/opencode/resolve/main/packages/tui/src/util/renderer.ts
251 Bytes
| import type { CliRenderer } from "@opentui/core" | |
| export function destroyRenderer(renderer: Pick<CliRenderer, "isDestroyed" | "setTerminalTitle" | "destroy">) { | |
| renderer.setTerminalTitle("") | |
| if (renderer.isDestroyed) return | |
| renderer.destroy() | |
| } | |