diff --git a/connect.py b/connect.py index 945dcf30c..063708ad3 100644 --- a/connect.py +++ b/connect.py @@ -430,8 +430,8 @@ class Jtty(object): time.sleep(1) tmp = channel.recv(1024) #print 'ok'+tmp+'ok' - SSH_TTY = re.search(r'(?<=/dev/).*', tmp).group().strip() - + # SSH_TTY = re.search(r'(?<=/dev/).*', tmp).group().strip() + SSH_TTY = '' channel.send('clear\n') # Make ssh interactive tunnel self.posix_shell(ssh) diff --git a/templates/jlog/log_online.html b/templates/jlog/log_online.html index f2eacb9d6..23ee55647 100644 --- a/templates/jlog/log_online.html +++ b/templates/jlog/log_online.html @@ -1,7 +1,21 @@ {% extends 'base.html' %} -{% block content %} -{% include 'nav_cat_bar.html' %} - + + + +{% endblock %} +{% block content %} +{% include 'nav_cat_bar.html' %}
' + exsit_message + '');#} -{# }#} - tag.animate({ scrollTop: tag[0].scrollHeight}, 1); - }; + var term = new Terminal({ + cols: 80, + rows: 24, + screenKeys: false + }); + var tag = $(''); + term.open(); + term.resize(80, 24); + + window.setTimeout(function(){ + $('.terminal').detach().appendTo('#term'); + socket.onmessage = function(evt){ + term.write(evt.data); + }}, 1000); + + tag[0].style.color = "#00FF00"; return tag[0]; @@ -158,7 +171,7 @@ $(document).ready(function(){ $('.monitor').click(function(){ - init($(this)) + init($(this)); }); $('.log_command').on('click',function(){