summaryrefslogtreecommitdiff
path: root/example/c-vt
diff options
context:
space:
mode:
authorMitchell Hashimoto <m@mitchellh.com>2025-09-24 12:24:47 -0700
committerMitchell Hashimoto <m@mitchellh.com>2025-09-24 12:25:43 -0700
commit48827b21d817dd167955be41d060eb3aea2239d7 (patch)
tree714d13a1a99be1fe2e4660b454f40db970a15244 /example/c-vt
parent513cdf667bb2fdd94eb00a7b3dc57df80f1531e9 (diff)
some PR feedback
Diffstat (limited to 'example/c-vt')
-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;
}