From: Romano <me+unobe@fallglow.com>
To: 9front@9front.org
Subject: [9front] window label
Date: Thu, 30 May 2024 11:02:34 -0700 [thread overview]
Message-ID: <936EF9A6D6FC7A0C8EA45C35090AFF47@smtp.pobox.com> (raw)
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.
next reply other threads:[~2024-05-30 18:04 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-30 18:02 Romano [this message]
2024-05-30 20:19 ` qwx
2024-05-31 7:56 ` 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=936EF9A6D6FC7A0C8EA45C35090AFF47@smtp.pobox.com \
--to=me+unobe@fallglow.com \
--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).