MCPcopy
hub / github.com/wavetermdev/waveterm / setTermMode

Method setTermMode

frontend/app/view/term/term-model.ts:514–522  ·  view source on GitHub ↗
(mode: "term" | "vdom")

Source from the content-addressed store, hash-verified

512 }
513
514 setTermMode(mode: "term" | "vdom") {
515 if (mode == "term") {
516 mode = null;
517 }
518 RpcApi.SetMetaCommand(TabRpcClient, {
519 oref: WOS.makeORef("block", this.blockId),
520 meta: { "term:mode": mode },
521 });
522 }
523
524 getTermRenderer(): "webgl" | "dom" {
525 return this.termRef.current?.getTermRenderer() ?? "dom";

Callers 2

constructorMethod · 0.95
keyDownHandlerMethod · 0.95

Calls 1

SetMetaCommandMethod · 0.65

Tested by

no test coverage detected