chiark / gitweb /
where-vessels: --debug implies a command loop
[ypp-sc-tools.db-live.git] / yarrg / where-vessels
index 1c2781fc92dffcae089993221175c76b4780f40a..5541749086bd683a9cc515bb4bf70e6a4366e0fb 100755 (executable)
@@ -1365,4 +1365,11 @@ after idle invoke_notes
 
 draw
 
+if {$debug} {
+    package require Tclx
+    commandloop -async \
+       -prompt1 { return "where-vessels% " } \
+       -prompt2 { return "> " }
+}
+
 # rsync -r --exclude=\*~ yarrg/icons/. ijackson@chiark.greenend.org.uk:/home/ftp/users/ijackson/yarrg/vessel-info/.