-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
no blink cursor in InputText #1427
Comments
Hello,
Would a InputTextFlags work for you? That would be easy to add.
May I ask why you need to disable the cursor blinking? Or disabling cursor at all?
|
Yeah, you could add it as a flag too, I misread first and thought ImGuiInputTextFlags_CharsNoBlank was it :) The need, is that I find blinking cursors extremely stressful. I disable them in all programs, and OS-wide. There are webpages dedicated to this problem. for example: http://www.jurta.org/en/prog/noblink |
I had never heard of users being annoyed by this before. |
@datgame FYI in the latest version I have renamed |
…ursorBlink. (#1427) + changed ImGuiIO layout.
I currently do:
#include <imgui_internal.h>
ImGui::GetCurrentContext()->InputTextState.CursorAnimReset();
each frame
or alternately:
https://github.com/ocornut/imgui/blob/master/imgui.cpp#L8370
comment out
edit_state.CursorAnim += io.DeltaTime;
I figured you want a proper API/variable for blink speed / disable.
The text was updated successfully, but these errors were encountered: