term::receive(n) | Terminal control | term::receive(n) |
term::receive - General input from terminals
package require Tcl 8.4
package require term::receive ?0.1?
::term::receive::getch ?chan?
::term::receive::listen cmd ?chan?
cmd process string
cmd eof
::term::receive::unlisten ?chan?
This package provides the most primitive commands for receiving characters to a terminal. They are in essence convenient wrappers around the builtin commands read and fileevent.
If not specified chan defaults to stdin.
It is the responsibility of the caller to make sure that the channel can provide single characters. On unix this can be done, for example, by using the command of package term::ansi::ctrl::unix.
If not specified chan defaults to stdin.
The signature of the command prefix is
If not specified chan defaults to stdin.
This document, and the package it describes, will undoubtedly contain bugs and other problems. Please report such in the category term of the Tcllib SF Trackers [http://sourceforge.net/tracker/?group_id=12883]. Please also report any ideas for enhancements you may have for either package and/or documentation.
character input, control, get character, listener, receiver, terminal
Terminal control
Copyright (c) 2006 Andreas Kupries <andreas_kupries@users.sourceforge.net>
0.1 | term |