Artifact
57089a8d2d8c36aa474d85df96b3ebddc5a41ba985c6d5de33f4e7f586e3ff6d:
Attachment "selection.tcl" to
ticket [af31a84c]
added by
sbron
2023-12-13 10:48:22.
proc selproc {version offset count} {
global selection
puts "Using selproc version $version"
return [string range $selection $offset [expr {$offset + $count -1}]]
}
set selection Hello
selection handle . {selproc 1}
selection own .
puts "Get: [selection get]"
# selection handle . {}
selection handle . {selproc 2}
puts "Get: [selection get]"