diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2021-06-02 15:50:29 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2021-06-04 05:44:00 +0000 |
| commit | 405b887a82ec83cf8423378ae4f4f92226998905 (patch) | |
| tree | 7de5c631bc1d3a6e392bf58841fb9cb2d790b3cf /osc.c | |
| parent | Merge branch 'chunked-reflow' (diff) | |
osc: implement iTerm2’s OSC-9 - desktop notifications
Diffstat (limited to 'osc.c')
| -rw-r--r-- | osc.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -521,7 +521,7 @@ osc_notify(struct terminal *term, char *string) const char *title = strtok_r(string, ";", &ctx); const char *msg = strtok_r(NULL, "\x00", &ctx); - notify_notify(term, title, msg); + notify_notify(term, title, msg != NULL ? msg : ""); } static void @@ -678,6 +678,11 @@ osc_dispatch(struct terminal *term) osc_uri(term, string); break; + case 9: + /* iTerm2 Growl notifications */ + osc_notify(term, string); + break; + case 10: case 11: case 17: |
