ztcl::vt dirty
Gives the rows that changed since the last call.
ztcl::vt dirty HANDLE
Description
Gives the rows of the active area that changed since the last call of dirty, in order. The first call gives each row. A change of the size or of the colors gives each row. A move of the cursor changes the row that it leaves and the row that it goes to.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| HANDLE | handle | required | A handle from new. |
Returns
A list of row indexes.
Examples
Each example of this page runs after package require ztcl::vt; set vt [ztcl::vt new].
% set t [ztcl::vt new -size {10 3}]
> set a [ztcl::vt dirty $t]
> ztcl::vt feed $t "\x1b\[3;1Hx"
> set r [list $a [ztcl::vt dirty $t] [ztcl::vt dirty $t]]
> ztcl::vt delete $t
> set r
{0 1 2} {0 2} {}
Errors
% ztcl::vt dirty vt99
can not find terminal "vt99"
-errorcode ZTCL VT HANDLE
% ztcl::vt dirty $vt x
wrong # args: should be "ztcl::vt dirty handle"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1