From 40e5a5811c6ffce9b0974e93cdd927cbcf60c157 Mon Sep 17 00:00:00 2001 From: Joe Hunkeler Date: Tue, 11 Aug 2015 16:51:37 -0400 Subject: Repatch (from linux) of OSX IRAF --- sys/gty/zzdebug.x | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 sys/gty/zzdebug.x (limited to 'sys/gty/zzdebug.x') 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 -- cgit