[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Terminal blinking cursor changing colour
From: |
Koichi Murase |
Subject: |
Re: Terminal blinking cursor changing colour |
Date: |
Tue, 20 Apr 2021 10:30:50 +0900 |
2021年4月20日(火) 9:37 <steve-humphreys@gmx.com>:
> Would you know of a hack to do it?
There is no hack, but maybe you can just implement it normally. Something like
printf '\e[2 q'
trap 'printf '\''\e]112\e\\\e[?25h'\' EXIT
for repeat in {1..10}; do
printf '\e]12;#%03x\e\\\e[?25h' $((RANDOM&0xFFF))
sleep 0.5
printf '\e[?25l'
sleep 0.5
done
--
Koichi