LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-14-2003, 12:30 PM   #1
paleogryph
Member
 
Registered: Mar 2003
Location: SLC, UT, US
Distribution: Fedora 12
Posts: 34

Rep: Reputation: 15
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?
 
Old 10-14-2003, 01:29 PM   #2
SaTaN
Member
 
Registered: Aug 2003
Location: Suprisingly in Heaven
Posts: 223

Rep: Reputation: 33
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 ...
 
Old 10-14-2003, 01:29 PM   #3
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Try changing your echo statement to:
Code:
echo -en "Enter your password: \033[47;05;40m_\033[00m"
 
Old 10-15-2003, 09:55 AM   #4
paleogryph
Member
 
Registered: Mar 2003
Location: SLC, UT, US
Distribution: Fedora 12
Posts: 34

Original Poster
Rep: Reputation: 15
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
 
Old 10-15-2003, 01:09 PM   #5
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Flashing Grub Cursor after attempted dual boot daverutt Linux - Newbie 8 05-04-2005 04:45 AM
just flashing cursor on boot eTitus Fedora - Installation 0 04-12-2005 09:05 AM
GRUB gives a flashing cursor and freezes leemoreau Red Hat 4 12-30-2004 06:59 AM
Kphone echo (echo echo) scabies Linux - Software 0 10-18-2004 02:59 PM
Echo /devPrinting doesn't work, echo /usb/lp0 works, Testpage works, Printing doesn't Hegemon Linux - General 3 08-15-2002 01:13 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration