Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
cdfea145
Commit
cdfea145
authored
Nov 26, 2015
by
ibuler
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of git.coding.net:jumpserver/jumpserver into dev
parents
72b8ac2a
431ad294
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
connect.py
connect.py
+2
-2
No files found.
connect.py
View file @
cdfea145
...
@@ -120,7 +120,7 @@ class Tty(object):
...
@@ -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):
...
@@ -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
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment