From 949f5199c581d7a1f8cc4afe83e63dc36ef58eb3 Mon Sep 17 00:00:00 2001 From: Philip Edelbrock Date: Fri, 18 Jun 1999 05:07:24 +0000 Subject: [PATCH] (Phil) Slightly better looking screen updates. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@491 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/matorb/displayit.pl | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/prog/matorb/displayit.pl b/prog/matorb/displayit.pl index 281b6a83..0af5ce48 100755 --- a/prog/matorb/displayit.pl +++ b/prog/matorb/displayit.pl @@ -8,17 +8,16 @@ # Written and copywritten (C) by Philip Edelbrock, 1999. -# Clear the screen -$temp=`echo "254 88" > /proc/sys/dev/sensors/matorb*/disp`; - # Turn off the blinking cursor $temp=`echo "254 84" > /proc/sys/dev/sensors/matorb*/disp`; $linenum=1; while () { -# Reset the position of the cursor to the next line -$temp=`echo "254 71 1 $linenum" > /proc/sys/dev/sensors/matorb*/disp`; + # Reset the position of the cursor to the next line + $temp=`echo "254 71 1 $linenum" > /proc/sys/dev/sensors/matorb*/disp`; + chop; + $_="$_ "; if (/^(.{1,20})/) { $_=$1; $line="";