MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / UseTermRef

Function UseTermRef

tsunami/app/hooks.go:61–64  ·  view source on GitHub ↗

UseTermRef returns a TermRef that can be passed as a ref to "wave:term" elements and also implements io.Writer for writing directly to the terminal.

()

Source from the content-addressed store, hash-verified

59// UseTermRef returns a TermRef that can be passed as a ref to "wave:term" elements
60// and also implements io.Writer for writing directly to the terminal.
61func UseTermRef() *TermRef {
62 ref := UseVDomRef()
63 return &TermRef{VDomRef: ref}
64}
65
66// UseRef is the tsunami analog to React's useRef hook.
67// It provides a mutable ref object that persists across re-renders.

Callers

nothing calls this directly

Calls 1

UseVDomRefFunction · 0.70

Tested by

no test coverage detected