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

add a timer fallback to hideprompt #301

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

add a timer fallback to hideprompt #301

wants to merge 1 commit into from

Conversation

pfitzseb
Copy link
Member

No description provided.

@@ -133,6 +136,18 @@ function hideprompt(f)
if INIT_COMPLETE[]
# Escape REPL modes, then write sentinel and trigger chars.
can_write_to_terminal = something(Atom.@rpc(writeToTerminal("\b\a$(REPL_SENTINEL_CHAR)$(REPL_TRIGGER_CHAR)")), true)
Copy link
Member

@aviatesk aviatesk Mar 26, 2020

Choose a reason for hiding this comment

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

Do we still need this check ? Can't we always writeToTerminal and then blockinput for this pass ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, good point -- we should only start the timer if can_write_to_terminal == true.

@aviatesk
Copy link
Member

Honestly speaking, now repl.jl is kinda beyond my understanding, so I don't feel I can give a good code review on this.
Well, I tested this branch for a while today and haven't encounter any issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants