blob: c3e235de254c0606c00d9911c6e2f5960dcabdf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# -*- tcl -*-
# ### ### ### ######### ######### #########
## Terminal packages - Generic sender operations
# ### ### ### ######### ######### #########
## Requirements
namespace eval ::term::send {}
# ### ### ### ######### ######### #########
## API. Write to channel, or default (stdout)
proc ::term::send::wr {str} {
wrch stdout $str
return
}
proc ::term::send::wrch {ch str} {
puts -nonewline $ch $str
flush $ch
return
}
namespace eval ::term::send {
namespace export wr wrch
}
# ### ### ### ######### ######### #########
## Ready
package provide term::send 0.1
##
# ### ### ### ######### ######### #########
|