LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2012, 11:55 PM   #1
spkemp
LQ Newbie
 
Registered: May 2012
Location: US 97103
Distribution: Ubuntu, for lack of any current knowledge of my choices.....
Posts: 4

Rep: Reputation: Disabled
cursor blinking - highly technical stupid question


DESCRIPTION OF THE BEHAVIOR:
1) The bash script beeping, does a beep, waits 10 seconds, and loops until interrupted.

2) All that is visible is the cursor, as expected. In the first iteration, after the beep 'alarm' sounds, the cursor is blinking. In the second iteration, it is not blinking. This alternating blinking/not-blinking continues until the ctl-C stops execution of beeping.

EXECUTION-TIME EXAMPLE:

Quote:
me@kengfu:~$ cat bin/beep
echo $'\a'
me@kengfu:~$
me@kengfu:~$ cat bin/beeping
while true
do

bin/beep
sleep 10

done
me@kengfu:~$ bin/beeping




^Cme@kengfu:~$
THE STUPID QUESTIONS:
1. Does this occur for you?
2. Can anyone explain why does the cursor stop blinking? I can't.


COMMENTS:
There are no tricks, or subterfuge.
P.S.
To be completely rigorous, in actuality the code is tab-indented and appears like this:

while true
do
bin/beep
sleep 10
done


but the 'code' formatting used in this post mungs the indentation, sorry...

OPERATING SYSTEM & HARDWARE SPECIFICS:
Click on this to see full-size:
Attached Thumbnails
Click image for larger version

Name:	system info.jpg
Views:	22
Size:	25.1 KB
ID:	9704  

Last edited by spkemp; 05-20-2012 at 03:28 PM.
 
Old 05-20-2012, 02:37 PM   #2
qweeak
LQ Newbie
 
Registered: Jan 2012
Posts: 24

Rep: Reputation: 2
Strange.. i tried the script and my cursor blinks all the time.
 
1 members found this post helpful.
Old 05-20-2012, 04:03 PM   #3
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
Use [code][/code] tags around your code and data, to preserve formatting and to improve readability. Please do not use quote tags, colors, or other fancy formatting.

And I'm not seeing this behavior either. Of course I set my console not to do that annoying blinking by default anyway, but I temporarily reset it just to test this.
 
1 members found this post helpful.
Old 05-23-2012, 08:37 PM   #4
spkemp
LQ Newbie
 
Registered: May 2012
Location: US 97103
Distribution: Ubuntu, for lack of any current knowledge of my choices.....
Posts: 4

Original Poster
Rep: Reputation: Disabled
follow-up: can no longer reproduce this error

I goofed -- I am still seeing this behavior, I do not have enough knowledge of termcap/terminfo to fix it by invetigating the tput setting...

So consider the issue still open...

Last edited by spkemp; 05-25-2012 at 05:38 AM. Reason: coeerction of the prior post
 
Old 05-23-2012, 08:43 PM   #5
uhelp
Member
 
Registered: Nov 2011
Location: Germany, Bavaria, Nueremberg area
Distribution: openSUSE, Debian, LFS
Posts: 205

Rep: Reputation: 43
If that happen again use
termcap, terminfo with "tput"

I think, that the given defaults led to this behaviour.
(And of course, it is a very strange setting...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cursor is not blinking.... since1993 Linux - Newbie 3 05-17-2013 05:34 PM
most non technical stupid question jcald77 Linux - Newbie 3 06-15-2006 09:42 PM
blinking cursor and no more upon startup dismas Slackware - Installation 13 11-13-2005 03:14 AM
aterm blinking cursor siskel Linux - General 0 10-31-2004 10:56 PM
slowing down blinking cursor jester_69 Linux - General 0 02-25-2004 07:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:25 AM.

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