ghostty_sgr_free function

  1. @Native<Void Function(GhosttySgrParser)>(GhosttySgrParser)>()
void ghostty_sgr_free(
  1. GhosttySgrParser parser
)

Free an SGR parser instance.

Releases all resources associated with the SGR parser. After this call, the parser handle becomes invalid and must not be used. This includes any attributes previously returned by ghostty_sgr_next().

@param parser The parser handle to free (may be NULL)

@ingroup sgr

Implementation

@ffi.Native<ffi.Void Function(GhosttySgrParser)>()
external void ghostty_sgr_free(GhosttySgrParser parser);