mirror of https://github.com/jumpserver/jumpserver
pull issue #120 remove ps1
parent
fd713e0e5c
commit
6a51bd1a1c
|
@ -364,7 +364,7 @@ class WebTerminalHandler(tornado.websocket.WebSocketHandler):
|
||||||
self.term.input_mode = True
|
self.term.input_mode = True
|
||||||
if str(jsondata['data']) in ['\r', '\n', '\r\n']:
|
if str(jsondata['data']) in ['\r', '\n', '\r\n']:
|
||||||
if self.term.vim_flag:
|
if self.term.vim_flag:
|
||||||
match = re.compile(r'\x1b\[\?1049', re.X).findall(self.vim_data)
|
match = re.compile(r'\x1b\[\?1049', re.X).findall(self.term.vim_data)
|
||||||
if match:
|
if match:
|
||||||
if self.term.vim_end_flag or len(match) == 2:
|
if self.term.vim_end_flag or len(match) == 2:
|
||||||
self.term.vim_flag = False
|
self.term.vim_flag = False
|
||||||
|
|
Loading…
Reference in New Issue