From b92c5188d1cdf88be8e86706fe2eb8ce5f8a8433 Mon Sep 17 00:00:00 2001 From: kelianchun Date: Wed, 23 Mar 2016 12:28:32 +0800 Subject: [PATCH] no command data no command data --- run_server.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/run_server.py b/run_server.py index 88e0bc625..e062319bc 100755 --- a/run_server.py +++ b/run_server.py @@ -367,13 +367,13 @@ class WebTerminalHandler(tornado.websocket.WebSocketHandler): match = self.term.ps1_pattern.search(self.term.vim_data) if match: self.term.vim_flag = False - vim_data = self.term.deal_command(self.term.vim_data)[0:200] + data = self.term.deal_command(self.term.data)[0:200] if len(data) > 0: - TtyLog(log=self.log, datetime=datetime.datetime.now(), cmd=vim_data).save() - vim_data = self.term.deal_command(self.term.vim_data)[0:200] - if len(vim_data) > 0: + TtyLog(log=self.log, datetime=datetime.datetime.now(), cmd=data).save() + data = self.term.deal_command(self.term.data)[0:200] + if len(data) > 0: TtyLog(log=self.log, datetime=datetime.datetime.now(), - cmd=vim_data).save() + cmd=data).save() self.term.vim_data = '' self.term.data = '' self.term.input_mode = False