aboutsummaryrefslogtreecommitdiff
path: root/sys/gty/gty.h
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2015-07-08 20:46:52 -0400
commitfa080de7afc95aa1c19a6e6fc0e0708ced2eadc4 (patch)
treebdda434976bc09c864f2e4fa6f16ba1952b1e555 /sys/gty/gty.h
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/gty/gty.h')
-rw-r--r--sys/gty/gty.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/gty/gty.h b/sys/gty/gty.h
new file mode 100644
index 00000000..72516859
--- /dev/null
+++ b/sys/gty/gty.h
@@ -0,0 +1,26 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+# GTY package definitions.
+
+define MAX_TC_NESTING 8 # max nesting of tc=term references
+
+# Mapping function used to map capcodes ("cm", etc.) into unique integers.
+define ENCODE ($1[1]*128+$1[2])
+
+# TTY descriptor structure. Full termcap entry is the 'caplist' string.
+# The caplist is indexed at open time to permit a binary search for
+# capabilities at run time.
+
+define T_MEMINCR 512 # increment if overflow occurs
+define T_OFFCAP 415 # struct offset to caplist field
+define MAX_CAPS 200 # maximum capabilities
+define LEN_DEFTTY 1024 # initial length of tty structure
+
+define T_LEN Memi[$1] # length of tty structure
+define T_OP Memi[$1+1] # offset into caplist
+define T_NCAPS Memi[$1+11] # number of capabilities
+define T_CAPLEN Memi[$1+12] # length of caplist, chars
+ # (extra space)
+define T_CAPCODE Memi[$1+15] # cap code array: c1*128+c2
+define T_CAPINDEX Memi[$1+215] # cap index array
+define T_CAPLIST Memc[P2C($1+415)] # termcap entry