ztcl::vt title
Gives the title of a terminal.
ztcl::vt title HANDLE
Description
Gives the title from the last OSC 0 or OSC 2, or an empty string. The OSC can end with BEL or with ST (ESC \).
Arguments
| Argument | Type | Default | Description |
|---|---|---|---|
| HANDLE | handle | required | A handle from new. |
Returns
The title.
Examples
Each example of this page runs after package require ztcl::vt; set vt [ztcl::vt new].
% set t [ztcl::vt new]
> set a [ztcl::vt title $t]
> ztcl::vt feed $t "\x1b\]2;Build\x07"
> set r [list $a [ztcl::vt title $t]]
> ztcl::vt delete $t
> set r
{} Build
Errors
% ztcl::vt title vt99
can not find terminal "vt99"
-errorcode ZTCL VT HANDLE
% ztcl::vt title $vt x
wrong # args: should be "ztcl::vt title handle"
-errorcode TCL WRONGARGS
Facts
- Capability
- None.
- Tcl release
- Tcl 9.1 and 8.6.
- Since
- ztcl 1.0.0-beta.1