summaryrefslogtreecommitdiffstats
path: root/doc/selection.n
diff options
context:
space:
mode:
Diffstat (limited to 'doc/selection.n')
-rw-r--r--doc/selection.n10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/selection.n b/doc/selection.n
index 1021d19..272f9f5 100644
--- a/doc/selection.n
+++ b/doc/selection.n
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: selection.n,v 1.5 2004/06/21 21:51:20 dkf Exp $
+'\" RCS: @(#) $Id: selection.n,v 1.6 2004/10/28 12:25:53 dkf Exp $
'\"
.so man.macros
.TH selection n 8.1 Tk "Tk Built-In Commands"
@@ -133,13 +133,13 @@ On X11 platforms, one of the standard selections available is the
SECONDARY selection. Hardly anything uses it, but here is how to read
it using Tk:
.CS
-set selContents [\fBselection\fR get \-selection SECONDARY]
+set selContents [\fBselection get\fR \-selection SECONDARY]
.CE
.PP
Many different types of data may be available for a selection; the
special type TARGETS allows you to get a list of available types:
.CS
-foreach type [\fBselection\fR get \-type TARGETS] {
+foreach type [\fBselection get\fR \-type TARGETS] {
puts "Selection PRIMARY supports type $type"
}
.CE
@@ -149,7 +149,7 @@ data for the selection. Then you have to claim the selection...
.CS
# Set up the data handler ready for incoming requests
set foo "This is a string with some data in it... blah blah"
-\fBselection\fR handle \-selection SECONDARY . getData
+\fBselection handle\fR \-selection SECONDARY . getData
proc getData {offset maxChars} {
puts "Retrieving selection starting at $offset"
return [string range $::foo $offset [expr {$offset+$maxChars}]]
@@ -157,7 +157,7 @@ proc getData {offset maxChars} {
# Now we grab the selection itself
puts "Claiming selection"
-\fBselection\fR own \-command lost \-selection SECONDARY .
+\fBselection own\fR \-command lost \-selection SECONDARY .
proc lost {} {
puts "Lost selection"
}