mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
osc: commented out beginning of OSC 777
I haven't decided if I want to support this
This commit is contained in:
parent
f8009b549a
commit
e7abd6ce97
1 changed files with 23 additions and 0 deletions
23
osc.c
23
osc.c
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue