chiark / gitweb /
where-vessels: --debug implies a command loop
[ypp-sc-tools.db-test.git] / yarrg / where-vessels
index 14d2e0e2fce54153807a5774639c3ed4ba808a84..5541749086bd683a9cc515bb4bf70e6a4366e0fb 100755 (executable)
@@ -1145,7 +1145,7 @@ proc islandnames-handler {offset maxchars} {
 proc widgets-setup {} {
     global canvas debug pirate ocean filterstyle
 
-    wm geometry . 1024x600
+    wm geometry . 1200x800
     wm title . "where-vessels - $pirate on the $ocean ocean"
 
     #----- map -----
@@ -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/.