diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-12-19 06:28:10 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-12-19 06:28:10 +0000 |
| commit | e7abd6ce9736fd04ae3e972bc95bb3a029de45a0 (patch) | |
| tree | b7bb5dc2306c81774afbae4ac140c34aaf4fa1e9 /osc.c | |
| parent | term: cursor blink reset doesn't force-refresh the cursor (diff) | |
osc: commented out beginning of OSC 777
I haven't decided if I want to support this
Diffstat (limited to 'osc.c')
| -rw-r--r-- | osc.c | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -298,6 +298,23 @@ parse_rgb(const char *string, uint32_t *color) return true; } +#if 0 +static void +osc_notify(struct terminal *term, char *string) +{ + char *ctx = NULL; + const char *cmd = strtok_r(string, ";", &ctx); + const char *title = strtok_r(NULL, ";", &ctx); + const char *msg = strtok_r(NULL, ";", &ctx); + + LOG_DBG("cmd: \"%s\", title: \"%s\", msg: \"%s\"", + cmd, title, msg); + + if (cmd == NULL || strcmp(cmd, "notify") != 0 || title == NULL || msg == NULL) + return; +} +#endif + void osc_dispatch(struct terminal *term) { @@ -479,6 +496,12 @@ osc_dispatch(struct terminal *term) osc_flash(term); break; +#If 0 + case 777: + osc_notify(term, string); + break; +#endif + default: UNHANDLED(); break; |
