From owner-freebsd-hackers@FreeBSD.ORG Tue Feb 1 13:11:54 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 1233) id 8E0351065670; Tue, 1 Feb 2011 13:11:54 +0000 (UTC) Date: Tue, 1 Feb 2011 13:11:54 +0000 From: Alexander Best To: Sergey Kandaurov Message-ID: <20110201131154.GA14569@freebsd.org> References: <20110201122432.GA6786@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Cc: freebsd-hackers@freebsd.org Subject: Re: weird characters in top(1) output X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Feb 2011 13:11:54 -0000 On Tue Feb 1 11, Sergey Kandaurov wrote: > On 1 February 2011 15:24, Alexander Best wrote: > > hi there, > > > > i was doing the following: > > > > top inf > ~/output > > > > when i noticed that this was missing the overall statistics line. so i went > > ahead and did: > > > > top -d2 inf > ~/output > > > > funny thing is that for the second output some weird characters seem to get > > spammed into the overall statistics line: > > > > last pid: 14320;  load averages:  0.42,  0.44,  0.37  up 1+14:02:02    13:21:05 > > 249 processes: 1 running, 248 sleeping > > CPU: ^[[3;6H 7.8% user,  0.0% nice, 10.6% system,  0.6% interrupt, 81.0% idle > > Mem: 1271M Active, 205M Inact, 402M Wired, 67M Cache, 212M Buf, 18M Free > > Swap: 18G Total, 782M Used, 17G Free, 4% Inuse > > > > this only seems to happen when i redirect the top(1) output to a file. if i do: > > > > top -d2 inf > > > > ...everything works fine. i verified the issue under zsh(1) and sh(1). > > My quick check shows that this is a regression between 7.2 and 7.3. > Reverting r196382 fixes this bug for me. thanks for the help. indeed reverting r196382 fixes the issue. cheers. alex > > -- > wbr, > pluknet -- a13x