Closed brooksvb closed 1 year ago
Looks duplicate of #7. Do you have any points to discuss which are not done in #7?
It is a duplicate. My apologies for not seeing the issue.
If I understand correctly, the cursor shown in a textarea is sort of a "virtual cursor," and not controlled/rendered by the terminal, which is why my crossterm
method did not work.
I've been trying to change the cursor style to a blinking bar for an editor program, but it seems like there isn't a way to do this beyond changing cursor color and blink rate.
I've tried doing so through crossterm but it seems like this is ignored in the rendering of the textarea.
And my implementation of
Buffer
which creates theTextArea
I've tried calling
textarea.set_cursor_style
from here (https://docs.rs/tui-textarea/latest/tui_textarea/struct.TextArea.html#method.set_cursor_style), but theStyle
struct from thetui
crate just doesn't seem to support a way to change the cursor shape.Is this a limitation of the
tui
crate? Is there a way I can change my cursor shape?