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
b6f82ca0
Commit
b6f82ca0
authored
Jan 14, 2016
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复vim修改窗口大小中断bug
parent
81a6f484
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
connect.py
connect.py
+4
-1
No files found.
connect.py
View file @
b6f82ca0
...
@@ -415,7 +415,10 @@ class SshTty(Tty):
...
@@ -415,7 +415,10 @@ class SshTty(Tty):
pass
pass
if
sys
.
stdin
in
r
:
if
sys
.
stdin
in
r
:
try
:
x
=
os
.
read
(
sys
.
stdin
.
fileno
(),
4096
)
x
=
os
.
read
(
sys
.
stdin
.
fileno
(),
4096
)
except
OSError
:
pass
input_mode
=
True
input_mode
=
True
if
str
(
x
)
in
[
'
\r
'
,
'
\n
'
,
'
\r\n
'
]:
if
str
(
x
)
in
[
'
\r
'
,
'
\n
'
,
'
\r\n
'
]:
if
self
.
vim_flag
:
if
self
.
vim_flag
:
...
@@ -803,7 +806,7 @@ def main():
...
@@ -803,7 +806,7 @@ def main():
color_print
(
'请输入正确ID'
,
'red'
)
color_print
(
'请输入正确ID'
,
'red'
)
except
ServerError
,
e
:
except
ServerError
,
e
:
color_print
(
e
,
'red'
)
color_print
(
e
,
'red'
)
except
Exception
,
e
:
except
IndexError
,
e
:
color_print
(
e
)
color_print
(
e
)
time
.
sleep
(
5
)
time
.
sleep
(
5
)
pass
pass
...
...
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