blob: 7b9d79a17d01ba90438cce51261cc5faa63e3912 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--Emulates the RFC 862 echo service, behaving like Unix's "cat" tool.
while true do
data = io.stdin:read(1)
if data == nil then
break
end
io.write(data:upper())
io.flush()
end
|