aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--driver-csi.c2
-rw-r--r--driver-ti.c2
-rw-r--r--termkey-internal.h1
3 files changed, 5 insertions, 0 deletions
diff --git a/driver-csi.c b/driver-csi.c
index fe885b2..05c7fa5 100644
--- a/driver-csi.c
+++ b/driver-csi.c
@@ -390,6 +390,8 @@ static termkey_keysym register_csifunc_full(termkey_csi *csi, termkey_type type,
}
struct termkey_driver termkey_driver_csi = {
+ .name = "CSI",
+
.new_driver = new_driver,
.free_driver = free_driver,
diff --git a/driver-ti.c b/driver-ti.c
index 0c25f48..7c1d458 100644
--- a/driver-ti.c
+++ b/driver-ti.c
@@ -255,6 +255,8 @@ static void register_seq(termkey_ti *ti, const char *seq, termkey_type type, ter
}
struct termkey_driver termkey_driver_ti = {
+ .name = "terminfo",
+
.new_driver = new_driver,
.free_driver = free_driver,
diff --git a/termkey-internal.h b/termkey-internal.h
index 6e68525..2a1a831 100644
--- a/termkey-internal.h
+++ b/termkey-internal.h
@@ -8,6 +8,7 @@
struct termkey_driver
{
+ const char *name;
void *(*new_driver)(termkey_t *tk, const char *term);
void (*free_driver)(void *info);
void (*start_driver)(termkey_t *tk, void *info);