Tcl-Tk-Tkwidget-Tix
view release on metacpan or search on metacpan
library/Console.tcl view on Meta::CPAN
bind $win <Next> {
%W yview scroll 1 pages
}
bind $win <F9> {
eval destroy [winfo child .]
source $tix_library/Console.tcl
}
foreach copy {F16 Meta-w Control-i} {
bind $win <$copy> {
if {[selection own -displayof %W] == "%W"} {
clipboard clear -displayof %W
catch {
clipboard append -displayof %W [selection get -displayof %W]
}
}
break
}
}
foreach paste {F18 Control-y} {
bind $win <$paste> {
catch {
set clip [selection get -displayof %W -selection CLIPBOARD]
set list [split $clip \n\r]
tools/tix-man2html.tcl view on Meta::CPAN
set lref $ref
} else {
set lref [string tolower $ref]
}
##
## nothing to reference
##
if { ! [info exists manual(name-$lref)]} {
foreach name {array file history info interp string trace
after clipboard grab image option pack place selection tk tkwait update winfo wm} {
if {[regexp "^$name \[a-z0-9]*\$" $lref] && \
[string compare $manual(tail) "$name.n"] && \
[info exists manual(name-$name)]} {
return "<A HREF=\"../$manual(name-$name).htm\">$ref</A>"
}
}
if {[lsearch {stdin stdout stderr end} $lref] >= 0} {
# no good place to send these
# tcl tokens?
# also end
( run in 1.802 second using v1.01-cache-2.11-cpan-2398b32b56e )