aboutsummaryrefslogtreecommitdiff
path: root/osc.c
diff options
context:
space:
mode:
Diffstat (limited to 'osc.c')
-rw-r--r--osc.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/osc.c b/osc.c
index 6c523116..efaab15f 100644
--- a/osc.c
+++ b/osc.c
@@ -7,7 +7,7 @@
#include "log.h"
#include "render.h"
-bool
+void
osc_dispatch(struct terminal *term)
{
int param = 0;
@@ -24,7 +24,7 @@ osc_dispatch(struct terminal *term)
if (!isdigit(c)) {
LOG_ERR("OSC: invalid parameter: %.*s",
(int)term->vt.osc.idx, term->vt.osc.data);
- return false;
+ abort();
}
param *= 10;
@@ -47,8 +47,7 @@ osc_dispatch(struct terminal *term)
default:
LOG_ERR("unimplemented: OSC: %.*s",
(int)term->vt.osc.idx, term->vt.osc.data);
- return false;
+ abort();
+ break;
}
-
- return true;
}