Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Set cursor style in prompt #10

Closed
scy opened this issue May 21, 2020 · 1 comment
Closed

Set cursor style in prompt #10

scy opened this issue May 21, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@scy
Copy link
Owner

scy commented May 21, 2020

The \e[x q escape sequence, where x is an integer, can be used to set the cursor style in some terminals, see ctrlseqs (look for DECSCUSR on that page).

If I set my preferred style (e.g. 5 (bar) or 1 (block)) in my shell prompt, I don’t have to configure this in each terminal emulator separately. (That is, if all of my terminal emulators support that sequence.)

(NB: There seems to be a consensus emerging to use 0 as meaning “return to default set in the terminal config”, but I don’t think I’m gonna go with that.)

@scy scy added the enhancement New feature or request label May 21, 2020
@scy
Copy link
Owner Author

scy commented Jan 4, 2021

Hashtag yagni, I guess?

@scy scy closed this as completed Jan 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant