-
Notifications
You must be signed in to change notification settings - Fork 2
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
Noticeable blinking while typing #10
Comments
Hello @cyangle, thank you reporting this! Do you reproduce on a classical terminal emulator? I guess It too slow on the vscode terminal. Maybe the |
It seems like a vscode problem. I turned on the Or maybe it's affected by project size. I was trying Here's the cr file: require "../src/stripe.cr"
Stripe.configure do |config|
config.access_token = "sk_test_4eC39HqLyjWDarjtT1zdp7dc"
end
Stripe::ApiClient.default.default_headers["Stripe-Version"] = "2022-08-01"
api = Stripe::InvoiceitemsApi.new
il = api.get_invoiceitems
debugger
pp il
|
On this commit, I've done several things that help to reduce blinking. Before, when typing a character, the screen was cleared up to the prompt, then some computations was done like re-highlight the expression, replace the cursor, then the expression was printed. Now the computations are done prior clearing the screen so the time between cleared screen and printed screen is extremely short. In addition (because seldom blinking was still present after that), I disallowed As soon I will release a new version of |
I'm not sure if it's related to my setup or not.
I was connecting to a remote dev container with vscode and there's noticeable blinking using
ic
with vscode terminal. But I don't have this problem with the crystal repl.Screen.Recording.2022-10-14.at.11.14.21.PM.mov
The text was updated successfully, but these errors were encountered: