Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Bliss
bliss
Commits
9d9a9a5b
Commit
9d9a9a5b
authored
Jun 18, 2021
by
Valentin Valls
Browse files
Do not display twice the last line
parent
2f178ef7
Changes
1
Hide whitespace changes
Inline
Side-by-side
bliss/shell/standard.py
View file @
9d9a9a5b
...
...
@@ -950,14 +950,16 @@ def __umove(*args, **kwargs):
ret_depth
=
magic_char
*
row
.
count
(
"
\n
"
)
return
"{}{}"
.
format
(
ret_depth
,
row
)
previous_line
=
None
while
group
.
is_moving
:
str
in
g
=
format_group
(
group
)
print
(
str
in
g
,
end
=
""
,
flush
=
True
)
previous_l
in
e
=
format_group
(
group
)
print
(
previous_l
in
e
,
end
=
""
,
flush
=
True
)
sleep
(
0.1
)
# print last time for final positions
string
=
format_group
(
group
)
print
(
string
,
end
=
""
,
flush
=
True
)
last_line
=
format_group
(
group
)
if
previous_line
!=
last_line
:
print
(
last_line
,
end
=
""
,
flush
=
True
)
print
(
""
)
return
group
,
motor_pos
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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