update connect.py

pull/26/head
kelianchun_miller 2015-11-26 17:17:37 +08:00
parent e71bbd4122
commit 431ad2940b
1 changed files with 3 additions and 3 deletions

View File

@ -120,7 +120,7 @@ class Tty(object):
""" """
处理命令中特殊字符 处理命令中特殊字符
""" """
str_r = remove_obstruct_char(str_r) str_r = self.remove_obstruct_char(str_r)
result_command = '' # 最后的结果 result_command = '' # 最后的结果
backspace_num = 0 # 光标移动的个数 backspace_num = 0 # 光标移动的个数
@ -192,7 +192,7 @@ class Tty(object):
if backspace_num > 0: #处理最后的退格符号 if backspace_num > 0: #处理最后的退格符号
result_command = result_command[0:-backspace_num] + pattern_str result_command = result_command[0:-backspace_num] + pattern_str
result_command = remove_control_char(result_command) result_command = self.remove_control_char(result_command)
return result_command return result_command
def get_log(self): def get_log(self):