added ability to freeze terminal screen on connection lost

This commit is contained in:
coderaiser 2012-09-24 07:22:46 -04:00
parent 2c018b9b11
commit a15664c0ab
4 changed files with 10 additions and 7 deletions

View file

@ -17,6 +17,7 @@ var CloudCommander, io;
socket.on('connect', function () {
outToTerminal('socket connected');
JqueryTerminal.Term.resume();
});
socket.on('message', function (msg) {
@ -26,6 +27,7 @@ var CloudCommander, io;
socket.on('disconnect', function () {
outToTerminal('socket disconected');
JqueryTerminal.Term.pause();
});
},