Skip to content

Conversation

pfitzseb
Copy link
Member

No description provided.

can_write_to_terminal = false
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