entry icursor
Moves the insertion cursor to INDEX.
PATHNAME icursor INDEX
Description
Puts the insertion cursor before the character at INDEX. The index insert then gives that place, and the next typed character goes there.
Returns
An empty string.
Examples
% entry .ic
> .ic insert 0 abcdef
> .ic icursor 2
> .ic index insert
2
Errors
% entry .ic2; .ic2 icursor
wrong # args: should be ".ic2 icursor pos"
-errorcode NONE
% entry .ic3; .ic3 icursor foo
bad entry index "foo"
-errorcode NONE
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztk 1.0.0-beta.1