mirror of https://github.com/jumpserver/jumpserver
update connect.py
parent
a9196ef149
commit
ee218a5fed
|
@ -155,7 +155,7 @@ class Tty(object):
|
||||||
""", re.X)
|
""", re.X)
|
||||||
result_command = control_char.sub('', result_command.strip())
|
result_command = control_char.sub('', result_command.strip())
|
||||||
if not self.vim_flag:
|
if not self.vim_flag:
|
||||||
if result_command.startswith('vi'):
|
if result_command.startswith('vi') or result_command.startswith('fg'):
|
||||||
self.vim_flag = True
|
self.vim_flag = True
|
||||||
return result_command.decode('utf8', "ignore")
|
return result_command.decode('utf8', "ignore")
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue