summaryrefslogtreecommitdiffstats
path: root/ds9/library/util.tcl
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-06-18 18:17:21 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-06-18 18:17:21 (GMT)
commit671eda8b795f09fa708fb36c5212c9b8c339eb83 (patch)
tree1584a4dc84f6cbebfed285a27e72fe077cc296f8 /ds9/library/util.tcl
parent212ccd4858884d2110f4ff07324e6315c9ce940b (diff)
downloadblt-671eda8b795f09fa708fb36c5212c9b8c339eb83.zip
blt-671eda8b795f09fa708fb36c5212c9b8c339eb83.tar.gz
blt-671eda8b795f09fa708fb36c5212c9b8c339eb83.tar.bz2
add ds9 frame send parser
Diffstat (limited to 'ds9/library/util.tcl')
-rw-r--r--ds9/library/util.tcl9
1 files changed, 9 insertions, 0 deletions
diff --git a/ds9/library/util.tcl b/ds9/library/util.tcl
index 04073f2..6ae250f 100644
--- a/ds9/library/util.tcl
+++ b/ds9/library/util.tcl
@@ -357,6 +357,15 @@ proc ProcessSendCmdCurrent2 {key cmd cmd2} {
}
}
+proc ProcessSendCmdCurrentYesNo {key cmd} {
+ global parse
+ global current
+
+ if {$current($key) != {}} {
+ $parse(proc) $parse(id) "[ToYesNo [$current($key) $cmd]]"
+ }
+}
+
proc ProcessSendCmdSend {ext cmd} {
global parse
global current