2 # Write out list of default widget options
6 cat >/tmp/d$$.tcl <<'EOD'
8 foreach c [lsort -ascii [info commands]] {
9 if {$c == "puts" || $c == "vwait"} {
12 if {[catch {$c .w$count} tmp]} {
15 if {"$tmp" != ".w$count"} {
18 if {[catch {.w$count configure} clist]} {
22 puts stderr [format "\n\t\t\t%s\n" $c]
23 foreach i [lsort -ascii $clist] {
24 if {[llength $i] > 2} {
25 puts stderr [format "%-35s\t%s" [lindex $i 0] [lindex $i 3]]
36 # Write out list of class bindings
40 cat >/tmp/d$$.tcl <<'EOD'
41 proc all w { return $w }
43 foreach c [lsort -ascii [info commands]] {
44 if {$c == "puts" || $c == "vwait"} {
47 if {[catch {$c .w$count} tmp]} {
50 if {"$tmp" != ".w$count"} {
54 if {$class != "all" && [catch {winfo class .w$count} class]} {
58 puts stderr [format "\n\t\t\t%s\n" $class]
61 foreach i [lsort -ascii [bind $class]] {
62 append out [format "%-19.19s" $i]
71 set out "*** no events bound to class ***"
73 puts stderr [string trimright $out "\n"]
86 echo "Terminals w/ color" >&2
87 echo "------------------" >&2
88 TERM=color_xterm ./cwsh $SCRIPT
90 echo "Terminals w/o color" >&2
91 echo "-------------------" >&2
92 TERM=vt100 ./cwsh $SCRIPT
98 echo "Events bound to classes" >&2
99 echo "-----------------------" >&2
100 TERM=vt100 ./cwsh $SCRIPT