aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ssh.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/ssh.py b/ssh.py
index 69accae..7beb1f1 100644
--- a/ssh.py
+++ b/ssh.py
@@ -20,7 +20,9 @@ class Connection(object):
chan = self.transport.accept(None)
if len(termcast_connections) > 0:
- chan.send(termcast_connections.values().__iter__().__next__().handler.get_term())
+ connection = termcast_connections.values().__iter__().__next__()
+ term_contents = connection.handler.get_term()
+ chan.send(term_contents.replace("\n", "\r\n"))
else:
chan.send("no data for doy\r\n")