beetlebug▾
/

ztcl::vt bells

Gives the count of bells since the terminal was made.

ztcl::vt bells HANDLE

Description

Gives the count of BEL characters since new. A BEL that ends an OSC is no bell.

Arguments

ArgumentTypeDefaultDescription
HANDLEhandlerequiredA 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]
> ztcl::vt feed $t "a\x07b\x07\x1b\]2;T\x07"
> set r [ztcl::vt bells $t]
> ztcl::vt delete $t
> set r
2

Errors

% ztcl::vt bells vt99
can not find terminal "vt99"
-errorcode ZTCL VT HANDLE

% ztcl::vt bells $vt x
wrong # args: should be "ztcl::vt bells handle"
-errorcode TCL WRONGARGS

Facts

Capability
None.
Tcl release
Tcl 9.1 and 8.6.
Since
ztcl 1.0.0-beta.1

See also