ztcl::vt scrollback
Gives the count of lines in the scrollback.
ztcl::vt scrollback HANDLE
Description
Gives the count of lines in the scrollback. The alternate screen has no scrollback.
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| HANDLE | handle | required | A handle from new. |
Returns
An integer.
Examples
Each example of this page runs after package require ztcl::vt; set vt [ztcl::vt new].
% set t [ztcl::vt new -size {10 2}]
> ztcl::vt feed $t "one\r\ntwo\r\nthree"
> set r [ztcl::vt scrollback $t]
> ztcl::vt delete $t
> set r
1
Errors
% ztcl::vt scrollback vt99
can not find terminal "vt99"
-errorcode ZTCL VT HANDLE
% ztcl::vt scrollback $vt x
wrong # args: should be "ztcl::vt scrollback handle"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1