Discussion:
[dev] [st] cursor color and current language
Dennis Yurichev
2018-04-20 13:54:40 UTC
Permalink
Hi all!

Is it possible somehow to make st's cursor changing according to the current language?
So it would alternate between two colors?

Offtopic: is it possible to do the same in xterm? VIM and Emacs?
--
-- http://www.yurichev.com
Sometimes I may delay my E-Mail reply. Sorry in advance for the inconvenience.
It's advisable to use PGP if/when possible. My public keys: http://yurichev.com/pgp.html
I also use https://bitmessage.org/ my ID: BM-2cUyrfGUDyjuUHyzAA63kq5NHAB2zMo4Q2
Carlos Torres
2018-04-20 15:02:58 UTC
Permalink
Thats a cool idea. Its currently not implemented but patches are welcome :)

—Carlos
Post by Dennis Yurichev
Hi all!
Is it possible somehow to make st's cursor changing according to the current language?
So it would alternate between two colors?
Offtopic: is it possible to do the same in xterm? VIM and Emacs?
--
-- http://www.yurichev.com
Sometimes I may delay my E-Mail reply. Sorry in advance for the inconvenience.
It's advisable to use PGP if/when possible. My public keys: http://yurichev.com/pgp.html
I also use https://bitmessage.org/ my ID: BM-2cUyrfGUDyjuUHyzAA63kq5NHAB2zMo4Q2
Dennis Yurichev
2018-04-23 22:31:02 UTC
Permalink
Post by Carlos Torres
Thats a cool idea. Its currently not implemented but patches are welcome :)
Post by Dennis Yurichev
Is it possible somehow to make st's cursor changing according to the current language?
So it would alternate between two colors?
Offtopic: is it possible to do the same in xterm? VIM and Emacs?
This is it, I'm changing keyboard layout by caps lock, but somehow, it's scroll lock which is changing :)
I'm not familiar with X Windows at all, so this is more proof-of-concept.
Maybe someone can point me how to make it better.
Also, color isn't changing right after caps lock press, but one press after...
Don't know how to fix this, yet...
--
-- http://www.yurichev.com
Sometimes I may delay my E-Mail reply. Sorry in advance for the inconvenience.
It's advisable to use PGP if/when possible. My public keys: http://yurichev.com/pgp.html
I also use https://bitmessage.org/ my ID: BM-2cUyrfGUDyjuUHyzAA63kq5NHAB2zMo4Q2
Teodoro Santoni
2018-04-24 10:38:52 UTC
Permalink
Hi,
Post by Dennis Yurichev
Hi all!
Is it possible somehow to make st's cursor changing according to the current language?
So it would alternate between two colors?
Offtopic: is it possible to do the same in xterm? VIM and Emacs?
--
-- http://www.yurichev.com
Sometimes I may delay my E-Mail reply. Sorry in advance for the inconvenience.
http://yurichev.com/pgp.html
BM-2cUyrfGUDyjuUHyzAA63kq5NHAB2zMo4Q2
A solution for some terminal could be to use
$ printf %b '\e]12;$(colour)\a'
conditionally.

Loading...