/usr/lib/gcl-2.6.7-prof/gcl-tk/demos/showVars.lisp is in gcl 2.6.7-98.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | (in-package "TK")
;;# showVars w var var var '...
;;
;; Create a top-level window that displays a bunch of global variable values
;; and keeps the display up-to-date even when the variables change value
;;
;; Arguments:
;; w - Name to use for new top-level window.
;; var - Name of variable to monitor.
(defun showVars (w args)
(if (winfo :exists w :return 'boolean) (destroy w))
(toplevel w)
(wm :title w "Variable values")
(label (conc w '.title) :text "Variable values:" :width 20 :anchor "center"
:font :Adobe-helvetica-medium-r-normal--*-180*)
(pack (conc w '.title) :side "top" :fill "x")
(dolist (i args)
(frame (conc w '|.| i))
(label (conc w '|.| i '.name) :text (tk-conc i ": "))
(label (conc w '|.| i '.value) :textvariable
(list (or (get i 'text-variable-type) t) i))
(pack (conc w '|.| i '.name) (conc w '|.| i '.value) :side "left")
(pack (conc w '|.| i) :side "top" :anchor "w")
)
(button (conc w '.ok) :text "OK" :command (tk-conc "destroy " w))
(pack (conc w '.ok) :side "bottom" :pady 2)
)
|