LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   How to echo a flashing cursor? (https://www.linuxquestions.org/questions/programming-9/how-to-echo-a-flashing-cursor-103855/)

paleogryph 10-14-2003 12:30 PM

How to echo a flashing cursor?
 
Bash Shell script on RH8. How can I display a flashing cursor in an echo statement? I have stty disable the echo from stdin while read is waiting for input, but I would like to have a flashing cursor echo.

Example:

echo -n "Enter your password: "
stty -echo
read PW

I've read quite a few man pages but haven't seen anything yet.
Any ideas?

SaTaN 10-14-2003 01:29 PM

Re: How to echo a flashing cursor?
 
Quote:

Originally posted by paleogryph
I would like to have a flashing cursor echo.

Can you please be a bit more precise ...

david_ross 10-14-2003 01:29 PM

Try changing your echo statement to:
Code:

echo -en "Enter your password: \033[47;05;40m_\033[00m"

paleogryph 10-15-2003 09:55 AM

That works to a degree
 
David, thanks for the info.
Can you point me to a url that has more of those codes to use with echo?

thanks

david_ross 10-15-2003 01:09 PM

Take a look at this howto:
http://www.64-bit.de/dokumentationen...OWTO.html#toc5


All times are GMT -5. The time now is 03:37 PM.