From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 9602 invoked from network); 25 Nov 2023 01:36:14 -0000 Received: from 9front.inri.net (168.235.81.73) by inbox.vuxu.org with ESMTPUTF8; 25 Nov 2023 01:36:14 -0000 Received: from mail.posixcafe.org ([45.76.19.58]) by 9front; Fri Nov 24 20:33:24 -0500 2023 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posixcafe.org; s=20200506; t=1700876021; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=fe0mpxFHH8iQheTh1pIuaz6mATKp7xCdbUpcTfHcdmk=; b=wBEJodkhbrQmtt5iKmaaTIapW3rl/zGlWfEkDlIpYx9GXvYVqml5okgwF6Bq6dLWUtLRrt GdOYJyDrWO/ynidxaQTI2QUKKe+SX5YIzYVTdV4ftIt196Ng5Lgj/BnBTLsZZv0Cynm6Rh d7Nnaxq4aSMS6NtsvquKeI1+hIJXCqg= Received: from [192.168.168.200] ( [207.45.82.38]) by mail.posixcafe.org (OpenSMTPD) with ESMTPSA id 344a4d97 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <9front@9front.org>; Fri, 24 Nov 2023 19:33:41 -0600 (CST) Message-ID: Date: Fri, 24 Nov 2023 19:33:22 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: 9front@9front.org References: <882FB1BF69DBD174B3569D61B959785E@prosimetrum.com> <52e39101-444c-43fa-b9a2-6c813c931b15@invalid.invalid> From: Jacob Moody In-Reply-To: <52e39101-444c-43fa-b9a2-6c813c931b15@invalid.invalid> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: HTTP database STM enhancement locator Subject: Re: [9front] [PATCH] Make pstree work with proportional fonts Reply-To: 9front@9front.org Precedence: bulk On 11/24/23 18:29, Blue-Maned_Hawk wrote: > On 11/23/23 00:59, umbraticus@prosimetrum.com wrote: >>> I'd suggest using a tab here, though, as god intended. >> >> http://www.9paste.net/none/tabtab.png > > As it happens, i'd in fact tried using tabs for this patch instead > before settling on its current state. You'll find this space padded numerical output pattern to be quite common in Plan 9, pstree is not unique in this. With a majority of fonts we ship with the system, this works fine. If we label this instance "wrong" do we also intend to fix it elsewhere? Changing this output also has the consequence of breaking people's existing scripts, and while pstree is not exactly used for scripting there are other instances of this space padded numeric output that very much are. I would prefer to not go ripping up the floorboards because the output does not look perfect on some custom fonts. If you would like to have a "perfect" display that knows how wide your font is and takes that in to account I suggest to try your hand at writing a graphical program. Perhaps you can make your own 9front task manager with collapsible process tree.