]> pd.if.org Git - pd_readline/blobdiff - mg/key.h
Added mg from an OpenBSD mirror site. Many thanks to the OpenBSD team and the mg...
[pd_readline] / mg / key.h
diff --git a/mg/key.h b/mg/key.h
new file mode 100644 (file)
index 0000000..3b2a7cf
--- /dev/null
+++ b/mg/key.h
@@ -0,0 +1,14 @@
+/*     $OpenBSD: key.h,v 1.5 2005/06/14 18:14:40 kjell Exp $   */
+
+/* This file is in the public domain. */
+
+/* key.h: Insert file for mg 2 functions that need to reference key pressed */
+
+#define MAXKEY 8                       /* maximum number of prefix chars */
+
+struct key {                           /* the chacter sequence in a key */
+       int     k_count;                /* number of chars */
+       KCHAR   k_chars[MAXKEY];        /* chars */
+};
+
+extern struct key key;