osc: commented out beginning of OSC 777

I haven't decided if I want to support this
This commit is contained in:
Daniel Eklöf 2019-12-19 07:28:10 +01:00
parent f8009b549a
commit e7abd6ce97
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

23
osc.c
View file

@ -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;