aboutsummaryrefslogtreecommitdiff
path: root/foot-features.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-12-08 19:06:22 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-12-08 19:06:22 +0000
commit0263a152d490c4120f76ae5447a114b30a43e6c8 (patch)
treede5c1ef01c33064df7c6dfac6505af98ddbf3e7f /foot-features.h
parentchangelog: DECSET 27127 - modifies Esc to send \E[27127~ instead of \E (diff)
parentinstall: simplify sentence (diff)
Merge branch 'input-method-editor'
Closes #134
Diffstat (limited to 'foot-features.h')
-rw-r--r--foot-features.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/foot-features.h b/foot-features.h
new file mode 100644
index 00000000..8da22f6c
--- /dev/null
+++ b/foot-features.h
@@ -0,0 +1,12 @@
+#pragma once
+
+#include <stdbool.h>
+
+static inline bool feature_ime(void)
+{
+#if defined(FOOT_IME_ENABLED) && FOOT_IME_ENABLED
+ return true;
+#else
+ return false;
+#endif
+}