nodejs / repl

REPL rewrite for Node.js ✨🐢🚀✨
MIT License
177 stars 25 forks source link

Prompt refresh is visible and causes annoying flicker #51

Open remi-guan opened 2 years ago

remi-guan commented 2 years ago
Version: Node.js 17.6.0 (V8 9.6.180.15-node.13)
on iTerm2, Build 3.4.16.
System: Darwin MacPro.local 21.3.0 Darwin Kernel Version 21.3.0: Wed Jan  5 21:37:58 PST 2022; root:xnu-8019.80.24~20/RELEASE_ARM64_T8101 arm64

It's exactly the same issue as the one described here. https://jira.mongodb.org/browse/MONGOSH-730

Quoted the problem description:

When I type at the prompt I can see the cursor going to the beginning of the line and come back, causing a very annoying and distracting flicker. I'm using mongosh 0.12.0, MacOS Catalina and iTerm2 3.4.5

I can still reproduce the same problem while using iTerm2 shell with node-prototype-repl. Any ideas to fix this issue?