1 #these commands are used to translate between different formats for
4 # $Log: focusUtils.tcl,v $
5 # Revision 1.1 1994/05/03 06:35:58 karavan
9 proc convToPath {lis} {
13 proc convToFocus {inp} {
16 lappend lis [convToPath $a]
19 set retval <[join $lis ,]>
23 proc convFromPath {path} {
24 return [lrange [split $path /] 1 end]
27 proc convFromFocus {focus} {
28 set meat [string range $focus 1 [expr [string length $focus] - 2]]
29 set lis [split $meat ,]
31 lappend retval [convFromPath $p]