Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
coco
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
coco
Commits
88a9e2d3
Commit
88a9e2d3
authored
Nov 07, 2018
by
ibuler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Update] b/q都可以回退
parent
f701bbc1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
interactive.py
coco/interactive.py
+2
-2
No files found.
coco/interactive.py
View file @
88a9e2d3
...
@@ -407,7 +407,7 @@ class InteractiveServer:
...
@@ -407,7 +407,7 @@ class InteractiveServer:
self
.
client
.
send
(
wr
(
_
(
'Tips: Enter the asset ID and log directly into the asset.'
),
before
=
1
))
self
.
client
.
send
(
wr
(
_
(
'Tips: Enter the asset ID and log directly into the asset.'
),
before
=
1
))
prompt_page_up
=
_
(
"Page up: P/p"
)
prompt_page_up
=
_
(
"Page up: P/p"
)
prompt_page_down
=
_
(
"Page down: Enter|N/n"
)
prompt_page_down
=
_
(
"Page down: Enter|N/n"
)
prompt_back
=
_
(
"BACK:
B/b
"
)
prompt_back
=
_
(
"BACK:
b/q
"
)
prompts
=
[
prompt_page_up
,
prompt_page_down
,
prompt_back
]
prompts
=
[
prompt_page_up
,
prompt_page_down
,
prompt_back
]
prompt
=
'
\t
'
.
join
(
prompts
)
prompt
=
'
\t
'
.
join
(
prompts
)
self
.
client
.
send
(
wr
(
prompt
,
before
=
1
))
self
.
client
.
send
(
wr
(
prompt
,
before
=
1
))
...
@@ -416,7 +416,7 @@ class InteractiveServer:
...
@@ -416,7 +416,7 @@ class InteractiveServer:
opt
=
net_input
(
self
.
client
,
prompt
=
':'
)
opt
=
net_input
(
self
.
client
,
prompt
=
':'
)
if
opt
in
(
'p'
,
'P'
):
if
opt
in
(
'p'
,
'P'
):
return
PAGE_UP
return
PAGE_UP
elif
opt
in
(
'
B'
,
'b
'
):
elif
opt
in
(
'
b'
,
'q
'
):
return
BACK
return
BACK
elif
opt
.
isdigit
()
and
self
.
search_result
and
0
<
int
(
opt
)
<=
len
(
self
.
search_result
):
elif
opt
.
isdigit
()
and
self
.
search_result
and
0
<
int
(
opt
)
<=
len
(
self
.
search_result
):
self
.
proxy
(
self
.
search_result
[
int
(
opt
)
-
1
])
self
.
proxy
(
self
.
search_result
[
int
(
opt
)
-
1
])
...
...
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