ztcl::vt size
Gives the count of columns and of rows of a terminal.
ztcl::vt size HANDLE
Description
Gives the list COLS ROWS.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| HANDLE | handle | required | A handle from new. |
Returns
A list of two integers.
Examples
Each example of this page runs after package require ztcl::vt; set vt [ztcl::vt new].
% set t [ztcl::vt new -size {20 4}]
> set r [ztcl::vt size $t]
> ztcl::vt delete $t
> set r
20 4
Errors
% ztcl::vt size vt99
can not find terminal "vt99"
-errorcode ZTCL VT HANDLE
% ztcl::vt size $vt x
wrong # args: should be "ztcl::vt size handle"
-errorcode TCL WRONGARGS
% ztcl::vt size vt99 x
wrong # args: should be "ztcl::vt size handle"
-errorcode TCL WRONGARGS
% ztcl::vt size
wrong # args: should be "ztcl::vt size handle"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1