TIP: Click on subject to list as thread! ANSI
echo: rberrypi
to: T M SMITH
from: DRUCK
date: 2017-10-23 09:59:00
subject: Re: Screen control

On 21/10/2017 21:04, T M Smith wrote:
> I am sure this is elementary to most but bear with me please.
> I am using Raspbian on a pi. How does one get a reading to print on
> screen in the same place on a continueing basis rather than printing
> on a new line and scrolling.

I'm surprised no one has mentioned the easiest way if you have a command
line program that displays a one off reading of 1 or more lines of text.
Simply use the watch command (sudo apt-get install watch) to run the
command every so many seconds, displaying the result in the same place
on the screen.

e.g. To show the CPU temperature every 1 seconds.

watch -n 1 /opt/vc/bin/vcgencmd measure_temp

---druck

--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)

SOURCE: echomail via QWK@docsplace.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.