From owner-freebsd-questions@freebsd.org Sat Apr 6 20:58:32 2019 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F2FEE156C98F for ; Sat, 6 Apr 2019 20:58:31 +0000 (UTC) (envelope-from kremels@kreme.com) Received: from mail.covisp.net (mail.covisp.net [65.121.55.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CD77F6B9B7 for ; Sat, 6 Apr 2019 20:58:30 +0000 (UTC) (envelope-from kremels@kreme.com) From: "@lbutlr" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: Re: Column widths FROM / WHAT in w(1) Date: Sat, 6 Apr 2019 14:58:23 -0600 References: <20190406153319.36f41b8f.freebsd@edvax.de> To: freebsd-questions@freebsd.org In-Reply-To: <20190406153319.36f41b8f.freebsd@edvax.de> Message-Id: <82580E12-C2F5-45FB-AAFC-8538B5CE0FCD@kreme.com> X-Mailer: Apple Mail (2.3445.104.8) X-Rspamd-Queue-Id: CD77F6B9B7 X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of kremels@kreme.com designates 65.121.55.42 as permitted sender) smtp.mailfrom=kremels@kreme.com X-Spamd-Result: default: False [-0.85 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.94)[-0.944,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MISSING_MIME_VERSION(2.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[kreme.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-0.96)[-0.962,0]; IP_SCORE(-0.28)[ip: (-0.84), ipnet: 65.112.0.0/12(-0.42), asn: 209(-0.09), country: US(-0.06)]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MX_GOOD(-0.01)[mail.covisp.net]; NEURAL_HAM_SHORT(-0.25)[-0.253,0]; RCVD_COUNT_ZERO(0.00)[0]; RCVD_IN_DNSWL_LOW(-0.10)[42.55.121.65.list.dnswl.org : 127.0.5.1]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:209, ipnet:65.112.0.0/12, country:US]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_EQ_ENVFROM(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Apr 2019 20:58:32 -0000 On 6 Apr 2019, at 07:33, Polytropon wrote: >=20 > System: FreeBSD 12.0-p3 i386. >=20 > I recently discovered that the WHAT column in the output > of the "w" command has become unusable, and "man w" does > not seem to indicate any user control for the formatting > of the columns. >=20 > The column WHAT now can only show up to 3 (in words: three) > characters on a standard 80-column terminal. I will put a How long has it been since an 80 column terminal was standard? Even back = as far as the late 80s the majority of terminals I used were 132 columns = and if you were stuck on an ADM-3a you got off it as quickly as = possible, and now I don't even know where you would find an 80 column = terminal. > ruler on top for illustration: >=20 > = ....+....1....+....2....+....3....+....4....+....5....+....6....+....7....= +....8 > USER TTY FROM LOGIN@ = IDLE WHAT >=20 > Things like "xinit" become "xin", and any longer command > cannot be easily identified anymore. Columns 79 and 80 > aren't used at all. >=20 > For comparison: On an older system, I get this layout: >=20 > = ....+....1....+....2....+....3....+....4....+....5....+....6....+....7....= +....8 > USER TTY FROM LOGIN@ IDLE WHAT >=20 > This is more than 20 characters for the WHAT field. Does it depend on the contents of "From"? Hmm, no, it doesn't seem too. = however, I will say that getting the from field cut-off in `w` is a lot = more of an issue than the WHAT column, I think. Have you looked at xo_parse_args? You could always output as json or xml and do your own thing. > Any idea on how to get the old layout of w back, instead > of increasing the terminal width? --=20 "Oh damn", said Maladict.