Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #39982, reduce cursor artifacts in REPL after #39538 #40411

Merged
merged 1 commit into from
Apr 12, 2021

Conversation

JeffBezanson
Copy link
Member

This makes two tweaks to the delayed-update code:

  1. Don't show the spinner when we're in the first row and the new text is printed anyway. This eliminates the artifact in the common case where you are just editing by hand at the start of a line.
  2. Only enable delayed-update by default on windows.

These can be separated if people prefer.

fix #39982

@JeffBezanson JeffBezanson added the REPL Julia's REPL (Read Eval Print Loop) label Apr 9, 2021
write(termbuf, spin_seq[mod1(position(buf) - w, length(spin_seq))])
cmove_left(termbuf)
if spinner
write(termbuf, spin_seq[mod1(position(buf) - w, length(spin_seq))])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think now that str[end] may be a better choice than spin_seq[*] also. But would need to test that theory.

@JeffBezanson JeffBezanson merged commit c649ebb into master Apr 12, 2021
@JeffBezanson JeffBezanson deleted the jb/replspinner branch April 12, 2021 18:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
REPL Julia's REPL (Read Eval Print Loop)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cursor progress indicator artefact in REPL
2 participants