From 61409d40e290e8eff75fe567942b4ba5438d23a0 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Mon, 22 Jul 2019 19:10:15 +0200 Subject: flash: convert our own 'flash' from a CSI to an OSC --- csi.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'csi.c') diff --git a/csi.c b/csi.c index 275d5657..cc23617a 100644 --- a/csi.c +++ b/csi.c @@ -5,8 +5,6 @@ #include #include -#include - #if defined(_DEBUG) #include #endif @@ -598,20 +596,6 @@ csi_dispatch(struct terminal *term, uint8_t final) } case 1001: { - /* Our own private - flash */ - unsigned duration_ms = vt_param_get(term, 1, 100); - LOG_DBG("FLASH for %ums", duration_ms); - - struct itimerspec alarm = { - .it_value = {.tv_sec = 0, .tv_nsec = duration_ms * 1000000}, - }; - - if (timerfd_settime(term->flash_timer_fd, 0, &alarm, NULL) < 0) - LOG_ERRNO("failed to arm flash timer"); - else { - term->flash_active = true; - } - break; } default: -- cgit v1.3