aboutsummaryrefslogtreecommitdiff
path: root/sys/gty/zzdebug.x
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/zzdebug.x
downloadiraf-linux-fa080de7afc95aa1c19a6e6fc0e0708ced2eadc4.tar.gz
Initial commit
Diffstat (limited to 'sys/gty/zzdebug.x')
-rw-r--r--sys/gty/zzdebug.x26
1 files changed, 26 insertions, 0 deletions
diff --git a/sys/gty/zzdebug.x b/sys/gty/zzdebug.x
new file mode 100644
index 00000000..c8171b4c
--- /dev/null
+++ b/sys/gty/zzdebug.x
@@ -0,0 +1,26 @@
+# Copyright(c) 1986 Association of Universities for Research in Astronomy Inc.
+
+task dump = t_dump
+
+# DUMP -- Dump a termcap (GTY) device entry.
+
+procedure t_dump()
+
+char fname[SZ_FNAME]
+char device[SZ_FNAME]
+char ufields[SZ_LINE]
+
+pointer gty
+pointer gtyopen()
+pointer gtycaps()
+
+begin
+ call clgstr ("fname", fname, SZ_FNAME)
+ call clgstr ("device", device, SZ_FNAME)
+ call clgstr ("ufields", ufields, SZ_LINE)
+
+ gty = gtyopen (fname, device, ufields)
+ call printf ("%s\n")
+ call pargstr (Memc[gtycaps(gty)])
+ call gtyclose (gty)
+end