From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <9front-bounces@9front.inri.net> X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.4 Received: from 9front.inri.net (9front.inri.net [168.235.81.73]) by inbox.vuxu.org (Postfix) with ESMTP id E50D72223C for ; Thu, 30 May 2024 20:04:00 +0200 (CEST) Received: from pb-smtp20.pobox.com ([173.228.157.52]) by 9front; Thu May 30 14:02:41 -0400 2024 Received: from pb-smtp20.pobox.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 69D4F33D58 for <9front@9front.org>; Thu, 30 May 2024 14:02:39 -0400 (EDT) (envelope-from me+unobe@fallglow.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=pobox.com; h=message-id :date:from:to:subject:mime-version:content-type :content-transfer-encoding; s=sasl; bh=soIv7O+j5fFZQ8XWIKGJnW/pO Jk1QGE4URx7GSaiqDE=; b=Dxx3x8CH5kiGfVa8CHuz7BWFPrA4ddXQP8RR0sxAC wBN3BOefyIfI9fzWvwfF+gBEtpsAwQQvkFzT4XkmyA+6YjNNi3whxxM7gnrBgQK8 FGZkelVCmU0vnp2VSUk/me9o0iH+h2bjmjIjwjWMhW1Q0009lzlItxAznfqekusM mk= Received: from pb-smtp20.sea.icgroup.com (unknown [127.0.0.1]) by pb-smtp20.pobox.com (Postfix) with ESMTP id 62C7533D57 for <9front@9front.org>; Thu, 30 May 2024 14:02:39 -0400 (EDT) (envelope-from me+unobe@fallglow.com) Received: from strider.localdomain (unknown [47.37.156.153]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp20.pobox.com (Postfix) with ESMTPSA id 6DD9933D50 for <9front@9front.org>; Thu, 30 May 2024 14:02:36 -0400 (EDT) (envelope-from me+unobe@fallglow.com) Message-ID: <936EF9A6D6FC7A0C8EA45C35090AFF47@smtp.pobox.com> Date: Thu, 30 May 2024 11:02:34 -0700 From: Romano To: 9front@9front.org MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Pobox-Relay-ID: CBDB685A-1EAE-11EF-8373-ACC938F0AE34-09620299!pb-smtp20.pobox.com List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: stateless ISO-certified lifecycle descriptor manager Subject: [9front] window label Reply-To: 9front@9front.org Precedence: bulk The man page for window(1) has quite a few flags yet one that I often wish were there is not: setting the label. There's a separate 'label' command, so the simplest I've gotten to starting a new window with rc and setting the label is: window rc -c '''label mylabel; rc''' The inner quotes are required.[1] Here is what is documented in window(1): window [ -m ] [ -r minx miny maxx maxy ] [ -dx n ] [ -dy n ] [ -minx n ] [ -miny n ] [ -maxx n ] [ -maxy n ] [ -cd dir ] [ -hide ] [ -scroll ] [ -noscroll ] [ cmd arg ... ] There are 3 different ways to set the size of the window (i.e., '-r', '-dx/dy', '-min/max'), and two flags to determine scrolling. To me, it looks like this might have been an oversight or window(1) was developed when the UI wasn't more fully developed (i.e., before a 'label' even existed).[2] I'll only ask one question for now: is the lack of setting label with a flag an oversight or intentional?[3] - Romano [1] I haven't investigated much, but I think it has to do with the parsing of arguments by window to the new window. For example: window rc -c 'echo -n mylabel > /mnt/wsys/label; rc' Will complain in the new window: Illegal flag -n Usage: rc [-srdiIlxebpvV] [-c arg] [-m command] [file [arg ...]] Maybe /bin/window needs to set $cmd to $"cmd when, except in the $#xflag case. [2] Also, '-m', which never brings to mind 'namespace' for me but I realize it's mean to signify 'mount' as explained in the manual, is like 'scroll' and 'hide' with respect to the other flags because they're ones whose current values I see which doesn't appear accessible in /mnt/wsys/ (or /dev) (scroll can be set via /mnt/wsys/wctl, and 'visible' wctl signifies the window is not hidden, but that's the extent of it as far as I can tell). [3] Lastly, '-x' does set the label to execute a new command, but doesn't create a new window. This flag isn't documented yet I see it's used when '-m' is used to set the label automatically to the command being run. It might make sense to do the same thing when '-m' isn't used, too, rather than the 'rc DDDDD' default.