Skip to content
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

custom cursor style #166

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

custom cursor style #166

wants to merge 1 commit into from

Conversation

najohnsn
Copy link
Member

@najohnsn najohnsn commented Nov 1, 2024

This PR resolves #77. Two new environment variables are introduced:

  • ZTI_CURSOR_REPLACE
  • ZTI_CURSOR_INSERT

They control the cursor style in insert and replace mode. The values are the terminal DECSCUSR values. Here are a couple of references to those values:

@najohnsn najohnsn added the enhancement New feature or request label Nov 1, 2024
@najohnsn najohnsn self-assigned this Nov 1, 2024
@v1gnesh
Copy link

v1gnesh commented Nov 2, 2024

What are the allowed values for these, can that be added to the doc, please?

Also, regarding the disappearing underscore cursor in 3.17 list items in my case at least, this was because I was using Jetbrains Mono and line height of 1.0 (instead of default 1.2).
When I update my screen size to 50x160 from 62x160, giving room for a line height of 1.2, I can see the cursor.

@najohnsn
Copy link
Member Author

najohnsn commented Nov 2, 2024

I would like to get some feedback that this is a useful way to resolve the reported issue. Then I can also update doc as part of this PR before it gets merged.

You could try ZTI_CURSOR_REPLACE=5 before running zti to resolve. Zti will use any positive integer you give it. Which values will be effective will depend on the terminal emulator you use. Values 0 through 6 should usually work - see the URLs I put in the description.

@v1gnesh, that is very interesting that the size of the font resolved your issue!

Signed-off-by: Neil Johnson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[zti] cursor disappears when on an input field with underscores
2 participants