-
Notifications
You must be signed in to change notification settings - Fork 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
[macOS] Inline Composition Buffer doesn't show cursor. #7849
Comments
The alacritty executable on macOS is inside the |
@kchibisov This problem still exists with 0.13.2 RC1. |
Which cursor style do you have set in Alacritty? Does it blink or is it always shown? I feel like with an I-Beam cursor that is always visible this shouldn't be possible, so could you try that? |
@chrisduerr I use the default cursor (always shown): |
@kchibisov You're probably more familiar with the IME code, is it supposed to hide the input cursor at any point? |
I'd need a |
@chrisduerr It needs to show the cursor if an IME utilizes nested input buffer. |
It is on client app's duty to implement IMKTextInput protocol / trait correctly.
ObjC: - (void)setMarkedText:(id)string selectionRange:(NSRange)selectionRange replacementRange:(NSRange)replacementRange; Swift: (clientInstance as? IMKTextInput)?.setMarkedText(_ text: String, selectionRange: NSRange) To my experience, the 2nd parameter has two behaviors, according to the length of the selectionRange parameter:
This is how the second behavior looks like in the inline composition buffer (Google Chrome): |
Note: I strongly suggest you folks to read the IMKInputSession.h in lieu of the Apple Xcode Documentation. Xcode Documentation is extremely lacking about certain crucial information of how IMKTextInput and InputMethodKit works. These protocols / frameworks were introduced in macOS 10.5 Snow Leopard, requiring additional researches for non-Apple developers to check Apple Developer Documentation Archive. |
It seems that there's nothing wrong (to me) in this line: alacritty/alacritty/src/event.rs Line 1452 in 6585d60
If there's a problem, then it must be happened with the given |
Just a memo here: I'll try modify this block to see whether it fix the cursor-missing issue: alacritty/alacritty/src/display/content.rs Lines 50 to 61 in 6585d60
|
@chrisduerr Here's the --print-events of the main branch 6585d60 :
|
Just fwiw cursor within the |
@kchibisov Could you please give me a screenshot of how hollow-block cursor looks like in a preedit? |
@kchibisov Eh that looks really terrible to me. |
I just have it bolder than it should be, it's the same in nearly all terminals I've used on linux. Just beam could be also fine, but you can not really indicate selection with just beam, but you can with such cursor just by enlarging it. |
Inline Composition Buffer doesn't show cursor.
Input methods like macOS built-in ones may use inline composition buffer (ICB). It may show a cursor when expected. However, in Alacritty (as of 0.13.1), the cursor in the ICB is missing.
System
OS: macOS 14.4 Sonoma
Version: 0.13.1 //
alacritty --version
doesn't work.Logs
Crashes: STDERR, STDOUT
Font/Terminal size:
alacritty -vv
Keyboard and bindings:
alacritty --print-events
The text was updated successfully, but these errors were encountered: