Go bindings for libghostty-vt. pkg.go.dev/go.mitchellh.com/libghostty
ghostty

terminal: fix checkptr failure under -race for cgo.Handle userdata master

Converting a cgo.Handle (uintptr) directly to unsafe.Pointer in NewTerminal triggered a checkptr "bad pointer value" panic when running tests with -race. The handle is an opaque integer, not a real Go pointer, so checkptr incorrectly rejects it. Extract the conversion into a small handleToPointer helper annotated with //go:nocheckptr to suppress the false positive.


Author Mitchell Hashimoto Date Commit fc3a9862 Parent f71a8173 Change ID vwqvpppq
+11 -1
1 changed file