beetlebug▾
/

tui::sendtui

Gives a list of keys to the widget with the focus, as a person at the terminal would.

tui::send KEYS

Description

Each key is a keysym of Tk, such as a, space, Return, Tab, Escape, Up, or BackSpace, with Control-, Shift-, or Alt- before it. Each one goes to the bindings and to the behavior of the widget: Return and space invoke a button, and Tab moves the focus.

Returns

An empty string.

Examples

% tui::button .t -text T -command {set ::t 1}; tui::pack .t; tui::send {Tab Return}; set ::t
1

Errors

% tui::send Control-
bad keysym "Control-"
-errorcode TK EVENT

Facts

Capability
tui. A new interpreter does not have it until the host turns it on.
Tcl release
Tcl 9.1 and 8.6.
Since
ztcl 1.0.0-beta.7

The full page: tui::send.

See also