aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/01base.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/t/01base.c b/t/01base.c
new file mode 100644
index 0000000..7fbddc0
--- /dev/null
+++ b/t/01base.c
@@ -0,0 +1,20 @@
+#include <stdio.h>
+#include "termkey.h"
+
+int main(int argc, char *argv[])
+{
+ TermKey *tk;
+
+ printf("1..2\n");
+
+ tk = termkey_new(0, TERMKEY_FLAG_NOTERMIOS);
+
+ printf(tk ? "" : "not ");
+ printf("ok 1 - termkey_new\n");
+
+ termkey_destroy(tk);
+
+ printf("ok 2 - termkey_free\n");
+
+ return 0;
+}