summaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
Diffstat (limited to 'example')
-rw-r--r--example/c-vt/src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/example/c-vt/src/main.c b/example/c-vt/src/main.c
index 406e617b6..f8ea2a9e5 100644
--- a/example/c-vt/src/main.c
+++ b/example/c-vt/src/main.c
@@ -3,7 +3,9 @@
int main() {
GhosttyOscParser parser;
- ghostty_vt_osc_new(NULL, &parser);
+ if (ghostty_vt_osc_new(NULL, &parser) != GHOSTTY_VT_SUCCESS) {
+ return 1;
+ }
ghostty_vt_osc_free(parser);
return 0;
}