9front - general discussion about 9front
 help / color / mirror / Atom feed
From: Jacob Moody <moody@posixcafe.org>
To: 9front@9front.org
Subject: Re: [9front] [PATCH] Make pstree work with proportional fonts
Date: Fri, 24 Nov 2023 19:33:22 -0600	[thread overview]
Message-ID: <da13519a-aa33-435d-9396-3b98280d8a40@posixcafe.org> (raw)
In-Reply-To: <52e39101-444c-43fa-b9a2-6c813c931b15@invalid.invalid>

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.


  reply	other threads:[~2023-11-25  1:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-22 23:11 Blue-Maned_Hawk
2023-11-23  4:27 ` Jacob Moody
2023-11-23  4:39   ` umbraticus
2023-11-23  4:45     ` Jacob Moody
2023-11-23  4:56       ` umbraticus
2023-11-23  5:30         ` ori
2023-11-23  5:51           ` Kurt H Maier
2023-11-23  5:59           ` umbraticus
2023-11-25  0:29             ` Blue-Maned_Hawk
2023-11-25  1:33               ` Jacob Moody [this message]
2023-11-25 12:11                 ` Blue-Maned_Hawk
2023-11-25  0:29     ` Blue-Maned_Hawk
2023-11-25  1:40       ` umbraticus

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=da13519a-aa33-435d-9396-3b98280d8a40@posixcafe.org \
    --to=moody@posixcafe.org \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).