Commit 9e78fd36 authored by ibuler's avatar ibuler

Merge master to dev (#212)

* Update install.py

修改centos7支持

* Update install.py

* Support resize web terminal size

Support resize web terminal size.

Change new windows to a new tab.
May be more hommization

* Static bug (#204)

* 紧急修复下载文件后静态文件404问题

* 紧急修复监控白屏问题

* bugfix(upload web) When download file, static file will unreachable.

Didn't change dir

fixed

* bugfix(upload web) When download file, static file will unreachable. (#206) (#207)

* Update install.py

修改centos7支持

* Update install.py

* Support resize web terminal size

Support resize web terminal size.

Change new windows to a new tab.
May be more hommization

* Static bug (#204)

* 紧急修复下载文件后静态文件404问题

* 紧急修复监控白屏问题

* bugfix(upload web) When download file, static file will unreachable.

Didn't change dir

fixed

* fix bug index out of range (#210)
parent cb58012a
...@@ -240,6 +240,7 @@ class TermLogRecorder(object): ...@@ -240,6 +240,7 @@ class TermLogRecorder(object):
TermLogRecorder.loglist[str(id)] = [self] TermLogRecorder.loglist[str(id)] = [self]
def write(self, msg): def write(self, msg):
"""
if self.recoder and (not self._in_vim): if self.recoder and (not self._in_vim):
if self.commands.__len__() == 0: if self.commands.__len__() == 0:
self._stream.feed(msg) self._stream.feed(msg)
...@@ -256,6 +257,7 @@ class TermLogRecorder(object): ...@@ -256,6 +257,7 @@ class TermLogRecorder(object):
self._screen.reset() self._screen.reset()
else: else:
self._command() self._command()
"""
try: try:
self.write_message(msg) self.write_message(msg)
except: except:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment