From owner-freebsd-current@FreeBSD.ORG Mon May 12 19:19:07 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 450B5106566B for ; Mon, 12 May 2008 19:19:07 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id 1165B8FC0A for ; Mon, 12 May 2008 19:19:07 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.2/8.14.2) with ESMTP id m4CJE6W1082731; Mon, 12 May 2008 12:14:06 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.2/8.14.2/Submit) id m4CJE6jn082730; Mon, 12 May 2008 12:14:06 -0700 (PDT) (envelope-from sgk) Date: Mon, 12 May 2008 12:14:06 -0700 From: Steve Kargl To: Dan Nelson Message-ID: <20080512191406.GA82536@troutmask.apl.washington.edu> References: <20080512182113.GA82050@troutmask.apl.washington.edu> <20080512184633.GD67415@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20080512184633.GD67415@dan.emsphone.com> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org Subject: Re: Ncurses or top(1) is broken X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2008 19:19:07 -0000 On Mon, May 12, 2008 at 01:46:34PM -0500, Dan Nelson wrote: > In the last episode (May 12), Steve Kargl said: > > Script started on Mon May 12 12:00:30 2008 > > mobile:kargl[201] setenv | grep TERM > > TERM=xterm > > mobile:kargl[202] stty -a | grep row > > speed 38400 baud; 43 rows; 90 columns; > > mobile:kargl[203] top 40 > > top: warning: this terminal can only display 36 processes. > > .... > > last pid: 893; load averages: 0.02, 0.05, 0.06 up 0+00:28:41 12:00:59 > > 24 processes: 3 running, 21 sleeping > > CPU: % user, % nice, % system, % interrupt, % idle > > Mem: 9880K Active, 7148K Inact, 22M Wired, 56K Cache, 29M Buf, 455M Free > > Swap: 712M Total, 712M Free > > What's broken? The header in top is 7 lines (your paste omitted a > blank line and the column headings for the process list), which means > that a 43-line window can only display 36 processes. Hmmm. Appears to be pilot error. I was expecting more than 24 processes to be running. so the short list of displayed processes and the recent updating of ncurses led me to a wrong conclusion. Sorry about the noise. -- Steve