Version 4.0 readme
[unix-history] / usr / src / usr.bin / tn3270 / ctlr / function.h
index d6ccc46..43d50c1 100644 (file)
@@ -1,3 +1,22 @@
+/*
+ * Copyright (c) 1988 Regents of the University of California.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms are permitted
+ * provided that the above copyright notice and this paragraph are
+ * duplicated in all such forms and that any documentation,
+ * advertising materials, and other materials related to such
+ * distribution and use acknowledge that the software was developed
+ * by the University of California, Berkeley.  The name of the
+ * University may not be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ *     @(#)function.h  3.3 (Berkeley) %G%
+ */
+
 /*
  * The following are the various functions which the keyboard can ask
  * the controller to perform.
 /*
  * The following are the various functions which the keyboard can ask
  * the controller to perform.
@@ -25,6 +44,8 @@ enum ctlrfcn {
 
        FCN_MAKE_CTRL,
 
 
        FCN_MAKE_CTRL,
 
+       FCN_CAPS_LOCK,
+
        FCN_MONOCASE,                   /* DISPLAY in upper case */
        FCN_DVCNL,
 
        FCN_MONOCASE,                   /* DISPLAY in upper case */
        FCN_DVCNL,
 
@@ -116,3 +137,14 @@ struct hits {
 };
 
 extern struct hits hits[];
 };
 
 extern struct hits hits[];
+
+/*
+ * Definitions of the shift state (and the left/right shift key position).
+ */
+
+#define        SHIFT_RIGHT     0x20    /* Right shift key is down */
+#define        SHIFT_LEFT      0x10    /* Left shift key is down */
+#define        SHIFT_CONTROL   0x08    /* Control shift state (unused) */
+#define        SHIFT_ALT       0x04    /* ALT shift state */
+#define        SHIFT_CAPS      0x02    /* Caps lock state */
+#define        SHIFT_UPSHIFT   0x01    /* Upshift state */