-
-
Notifications
You must be signed in to change notification settings - Fork 309
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
Vim cursors shapes? #356
Comments
I think you mean something other than "Vim" (unless Vim is your terminal?) We don't support changing cursor shapes at any rate, because I have no idea about what the escape codes for doing that are. |
Well, it's actually aerc mail client, which is my terminal in this particular case :). And which seems to use
Something like this?
Like, |
Just encountered this as well, also in aerc. In my zshrc I use:
They are for block and beam cursor shapes respectively. Not sure what the best options are for portability to be honest, but it could be nice to have the option. Cursor shape basically replaces vim's |
Agreed it would be nice to have an interface for this in tcell, but fwiw in the meantime you can always just send the relevant escape sequence to stdout yourself: func setCursorShape(n int) {
// https://invisible-island.net/xterm/ctlseqs/ctlseqs.html
// 1 blinking block (default)
// 3 blinking underline
fmt.Printf("\033[%d q", n)
} |
Well, that's nice for developers, of course, but I'm talking from the end user's point of view. |
Tcell is a developers product lol.
Get Outlook<https://aka.ms/qtex0l> for iOS
…________________________________
From: 097115 ***@***.***>
Sent: Saturday, June 5, 2021 2:02:57 PM
To: gdamore/tcell ***@***.***>
Cc: gdamore ***@***.***>; Comment ***@***.***>
Subject: Re: [gdamore/tcell] Vim cursors shapes? (#356)
Well, that's nice for developers, of course, but I'm talking from the end user's point of view.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#356 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAJ4G7IOCESUGGW2Q2DRCSTTRJRFDANCNFSM4OXNFOIQ>.
|
That said I’d be willing to add some support for at least cvvis. Which gives an enhanced cursor.
Get Outlook<https://aka.ms/qtex0l> for iOS
…________________________________
From: Garrett D'Amore ***@***.***>
Sent: Saturday, June 5, 2021 5:43:58 PM
To: gdamore/tcell ***@***.***>; gdamore/tcell ***@***.***>
Cc: Comment ***@***.***>
Subject: Re: [gdamore/tcell] Vim cursors shapes? (#356)
Tcell is a developers product lol.
Get Outlook<https://aka.ms/qtex0l> for iOS
________________________________
From: 097115 ***@***.***>
Sent: Saturday, June 5, 2021 2:02:57 PM
To: gdamore/tcell ***@***.***>
Cc: gdamore ***@***.***>; Comment ***@***.***>
Subject: Re: [gdamore/tcell] Vim cursors shapes? (#356)
Well, that's nice for developers, of course, but I'm talking from the end user's point of view.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#356 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAJ4G7IOCESUGGW2Q2DRCSTTRJRFDANCNFSM4OXNFOIQ>.
|
Try to think more and lol less, may be then you'll get that not every tcell user is using it as a developer. |
The only way to use tcell directly is as a developer. If I add an API for cursor shapes your app won't benefit from it unless they also add code (developer) to do so. You profane commentary you can keep to yourself. |
While here, if you are gonna behave that way to a developer who builds something that you use but which provide no contribution to, maybe you should stop using my work. And anything else that is built upon my work. I'm not looking for any contribution from you here, but ad hominem attacks laced with profanity are most definitely unwelcome here. Whether towards me or towards anyone else. Please see the code of conduct for this project for more detail. |
This adds a new method, SetCursorStyle() to the screen API. It also automatically restores the cursor when disengaging to the default cursor. Modern terminals (and Windows console) support this.
Does
tcell
support setting Vim cursors' shapes?The text was updated successfully, but these errors were encountered: