beetlebug▾
/

ztcl::vt delete

Frees a terminal.

ztcl::vt delete HANDLE

Description

Frees the terminal, and the handle is then invalid. The interpreter frees each terminal that is left when it ends or when an embedder calls Interp.reset.

Arguments

ArgumentTypeDefaultDescription
HANDLEhandlerequiredA handle from new.

Returns

An empty string.

Examples

Each example of this page runs after package require ztcl::vt; set vt [ztcl::vt new].

% set t [ztcl::vt new]
> ztcl::vt delete $t
> catch {ztcl::vt size $t}
1

Errors

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

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

Facts

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

See also