39 send_message(text); |
39 send_message(text); |
40 if not opts.interactive then |
40 if not opts.interactive then |
41 conn:close(); |
41 conn:close(); |
42 end |
42 end |
43 end |
43 end |
44 stdin = require "net.server".wrapclient(stdin, "stdin", 0, { |
44 stdin = verse.server.wrapclient(stdin, "stdin", 0, { |
45 onincoming = on_incoming, ondisconnect = function () end |
45 onincoming = on_incoming, ondisconnect = function () end |
46 }, "*l"); |
46 }, "*l"); |
47 else |
47 else |
48 send_message(table.concat(arg, " ")); |
48 send_message(table.concat(arg, " ")); |
49 conn:close(); |
49 conn:close(); |