[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Terminal blinking cursor changing colour
From: |
steve-humphreys |
Subject: |
Re: Terminal blinking cursor changing colour |
Date: |
Tue, 20 Apr 2021 02:37:02 +0200 |
In Terminator I can use the following command to change the colour.
echo -e "\e]12;red\a"
For the cursor there is
civis=\e[?25l
cnorm=\e[34h\e[?25h
Would you know of a hack to do it?
Steve
> Sent: Tuesday, April 20, 2021 at 12:16 PM
> From: "Koichi Murase" <myoga.murase@gmail.com>
> To: steve-humphreys@gmx.com
> Cc: "help bash" <help-bash@gnu.org>
> Subject: Re: Terminal blinking cursor changing colour
>
> 2021年4月20日(火) 8:09 <steve-humphreys@gmx.com>:
> > Is it possible the change the colour of the blinking cursor in terminal
> > in a way that a new colour is displayed after every blink?
>
> No terminals support such cursors, and I think no terminals would
> support it. Why do you need to show the cursor in such a way? If it
> is really necessary, maybe you can implement blinking by yourself
> using SM(25)/RM(25) (show/hide cursor) and OSC(12) (change cursor
> color). But not so many terminals support OSC(12). Some other
> terminals may provide their own sequences to change the cursor color,
> such as RLCURCOL of RLogin.
>
> --
> Koichi
>
>