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

Cursor Not Blinking #302

Closed
dkrieger opened this issue Jan 12, 2017 · 43 comments · Fixed by #3931
Closed

Cursor Not Blinking #302

dkrieger opened this issue Jan 12, 2017 · 43 comments · Fixed by #3931

Comments

@dkrieger
Copy link

Is there an option to cause the cursor to blink? I find it to be helpful confirmation that the terminal has (or doesn't have) focus.

@jwilm
Copy link
Contributor

jwilm commented Jan 12, 2017

Blinking just hasn't been implemented yet. Even if it were, there's another piece missing to make i stop blinking when the window isn't focused.

@jwilm jwilm added the B - bug label Jan 12, 2017
@dkrieger
Copy link
Author

I thought that might be the case, didn't see an issue for it though. Thanks for the confirmation

@jwilm
Copy link
Contributor

jwilm commented Jan 12, 2017

didn't see an issue for it though

Thanks for filing this one!

@moon-chilled
Copy link

I'd like to express my support for an option to DISABLE blinking, once it arrives. I detest blinking. The screen is constantly changing, and I can't focus on what I'm writing. Not an attack on people who do like it, or anything, just a request.

@impowski impowski mentioned this issue Jan 23, 2017
5 tasks
@rafi
Copy link

rafi commented Jun 25, 2017

@jwilm is the piece (to make cursor stop blinking when the window isn't focused) still missing? :)

@jwilm
Copy link
Contributor

jwilm commented Jun 25, 2017

@rafi cursor doesn't blink at all yet

@Thermatix
Copy link

@jwilm is cursor blinking implemented yet?

@chrisduerr
Copy link
Member

It is not.

@martskins
Copy link

any hints on where one should be looking to solve this one?

@chrisduerr
Copy link
Member

This isn't super simple, since a proper implementation would probably make use of a common interface to specify things which can automatically repeat based on a timer.

Things like scrolling during selection would also benefit from something like that.

I've personally tried to make a little PoC of something like that work in here: #1512, however there certainly is some complexity to this and I'm not sure which approach I'd be happiest with.

@tehdb

This comment has been minimized.

1 similar comment
@go1dshtein

This comment has been minimized.

@M1cR0xf7

This comment has been minimized.

@unphased

This comment has been minimized.

@astrolemonade

This comment has been minimized.

@chrisduerr chrisduerr mentioned this issue Jan 13, 2020
3 tasks
@DLFW

This comment has been minimized.

@rochr4
Copy link

rochr4 commented May 4, 2020

I also miss blinking cursor, helps on hidpi screens, if it is implemented it should honor .inputrc settings like:

set vi-ins-mode-string \033[1;31m<(ins)>\033[0m \1\e[5 q\2
set vi-cmd-mode-string \033[1;30m<(cmd)>\033[0m \1\e[1 q\2

what alacritty could add is a timer, like xfce4-terminal does it for eg.

@Piping
Copy link

Piping commented Jun 25, 2020

need a way to set cursor blinking in alacritty.yaml file.

@ThatOneCalculator
Copy link

Any progress on this?

@rumpelsepp
Copy link

@ThatOneCalculator #3931

@ThatOneCalculator
Copy link

@ThatOneCalculator #3931

Is there a way to use that branch?

@Dettorer
Copy link
Contributor

Please note this branch isn't fully functional yet.

@adityamwagh
Copy link

Any update on the implementation?

@Dettorer
Copy link
Contributor

Not yet, see PR #3931

@Adoliin
Copy link

Adoliin commented Feb 14, 2021

Any update?

@rochr4
Copy link

rochr4 commented Feb 15, 2021

It works now, maybe You need to set it like '\1\e[1 q\2' in ~/.inputrc

@AndrewKaeppel
Copy link

AndrewKaeppel commented Feb 28, 2021

Add the following to your alacritty.yml:

cursor:
  style:
    blinking: Always
    blink_interval: 500

Then close and reopen your terminal. See the default config for more info.

@hrqmonteiro
Copy link

Add the following to your alacritty.yml:

cursor:
  style:
    blinking: Always
    blink_interval: 500

Then close and reopen your terminal. See the default config for more info.

Not working.

@timmyjose
Copy link

Add the following to your alacritty.yml:

cursor:
  style:
    blinking: Always
    blink_interval: 500

Then close and reopen your terminal. See the default config for more info.

Not working.

Yup, doesn't work for me either - on macOS.

@aboivin
Copy link

aboivin commented May 6, 2021

This worked for me :

cursor:
  style:
    blinking: Always
  blink_interval: 500

close and reopen

@liuyigh
Copy link

liuyigh commented Feb 20, 2022

Works for me:

cursor:
  style:
    shape: Block
    blinking: Always
  blink_interval: 500

@vishalpaudel
Copy link

Stops blinking after some time! How do I fix this?

@kchibisov
Copy link
Member

Stops blinking after some time! How do I fix this?

#blink_timeout: 5

@unphased
Copy link

unphased commented Mar 27, 2023

I can't seem to make it blink any faster than the setting of 500. Can we change this to blink the cursor a bit faster? Is there some kind of internal limitation?

@Skarian
Copy link

Skarian commented Mar 28, 2023

You need to lower the number, not increase it.

@unphased
Copy link

Yeah that's what I'm saying. Setting 300, or 50, still sees it blinking about once a second.

@unphased
Copy link

OK I had the blink_interval and blink_timeout listed under style, when they need to be outside, under cursor. All works now. Great.

@unphased
Copy link

unphased commented Mar 28, 2023

There's no way to get it to never stop blinking. Config error: blink_timeout: invalid value: integer `257`, expected u8 OK i saw the sample config. 0 means infinite. Good.

@brownjohnf
Copy link

brownjohnf commented Mar 28, 2023 via email

@paulchiu
Copy link

paulchiu commented Apr 27, 2024

This works for me in toml format config.

[cursor]
blink_interval = 500
[cursor.style]
shape = "Block"
blinking = "Always"

@vgnshiyer
Copy link

Any idea how to control the way it blinks?

@nixpulvis
Copy link
Contributor

nixpulvis commented May 6, 2024

@vgnshiyer see https://alacritty.org/config-alacritty.html. cursor.style.blinking = "Never" | "Off" | "On" | "Always" should be the options we have, along with blink_interval and blink_timeout.

Otherwise, not sure what you mean by "the way it blinks".

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.