General TC > Programming & Scripting - Unofficial

Freqmon - a minimalistic approach to monitor CPU frequency

<< < (5/5)

Rich:
Hi tinypoodle

--- Quote ---(working as desired with 4x1, side effect of last digit getting crippled by pseudo-invisible cursor).
--- End quote ---
My machine shows the same effect, until I move the focus to another window, then the last digit is visible. If I
change it to this:

--- Code: ---aterm -fade 100 -title Freqmon -fg green -bg black -cr black -ib 0 -bl +sb -geometry 4x1+30+30 -e watch -t "echo -ne '\033[?25l'; grep M /proc/cpuinfo|cut -d: -f2|cut -d. -f1|sed 's/^.//'|tr -d '\n'" &
--- End code ---
the last digit is always visible.

--- Quote ---- With tr, 4x1 : works as desired, with a side effect of output blinking.
--- End quote ---
The blinking "feature" tells you it's working. ::)

tinypoodle:

--- Quote from: Rich on March 25, 2013, 01:05:18 PM ---My machine shows the same effect, until I move the focus to another window, then the last digit is visible.

--- End quote ---

Here looks crippled when unfocused and invisible when focused.


--- Quote ---
--- Code: ---aterm -fade 100 -title Freqmon -fg green -bg black -cr black -ib 0 -bl +sb -geometry 4x1+30+30 -e watch -t "echo -ne '\033[?25l'; grep M /proc/cpuinfo|cut -d: -f2|cut -d. -f1|sed 's/^.//'|tr -d '\n'" &
--- End code ---
the last digit is always visible.
--- End quote ---

Works to perfection now, thanks a lot! :D
I can't see anything being different from what I had tried earlier... but... I later found multiple stale 'watch' PIDs running, leftovers from experiencing, so I suspect that may have been causing the excessive blinking (I didn't mean the characteristic to watch slight blinking, that's expected).

tinypoodle:
Oh, and '-cr black' has now become redundant

Navigation

[0] Message Index

[*] Previous page

Go to full version