* [9fans] /bin/window -s or -scroll flag?
@ 2004-01-26 21:26 Axel Belinfante
2004-02-11 23:27 ` matt
0 siblings, 1 reply; 7+ messages in thread
From: Axel Belinfante @ 2004-01-26 21:26 UTC (permalink / raw)
To: 9fans
window(1) mentions a -s flag (enable scrolling) which does not work.
A -scroll flag (mentioned in rio(4)) does work, except when combined
with an initial -m flag.
I tried adding a -scroll case at the obvious place in /rc/bin/window
but that did not do the trick.
Axel.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] /bin/window -s or -scroll flag?
2004-01-26 21:26 [9fans] /bin/window -s or -scroll flag? Axel Belinfante
@ 2004-02-11 23:27 ` matt
2004-02-12 0:26 ` rob pike, esq.
0 siblings, 1 reply; 7+ messages in thread
From: matt @ 2004-02-11 23:27 UTC (permalink / raw)
To: 9fans
> window(1) mentions a -s flag (enable scrolling) which does not work.
that's because it's for rio and not window
rio [ -i 'cmd' ] [ -k 'kbdcmd' ] [ -s ] [ -f font ]
window [ -m ] [ -r minx miny maxx maxy ] [ -dx n ] [ -dy n ]
[ -minx n ] [ -miny n ] [ -maxx n ] [ -maxy n ] [ -cd dir ]
[ -hide ] [ cmd arg ... ]
here's what I do to run irc8 in a new window that scrolls :
window -r 10 10 611 611 'echo scroll > /mnt/wsys/wctl; irc8 -s irc.freenode.org -p 6667 -u maht -r maht -n maht'
m
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] /bin/window -s or -scroll flag?
2004-02-11 23:27 ` matt
@ 2004-02-12 0:26 ` rob pike, esq.
2004-02-12 13:00 ` Axel Belinfante
0 siblings, 1 reply; 7+ messages in thread
From: rob pike, esq. @ 2004-02-12 0:26 UTC (permalink / raw)
To: 9fans
window -scroll works fine for me.
the arguments window takes are the ones accepted as args by the mount call.
-rob
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] /bin/window -s or -scroll flag?
2004-02-12 0:26 ` rob pike, esq.
@ 2004-02-12 13:00 ` Axel Belinfante
2004-02-12 15:48 ` Rob Pike
2004-02-12 15:48 ` Rob Pike
0 siblings, 2 replies; 7+ messages in thread
From: Axel Belinfante @ 2004-02-12 13:00 UTC (permalink / raw)
To: 9fans
> window -scroll works fine for me.
for me as well, unless window is invoked with -m and -scroll,
because the 'toss geometry arguments to find command' case
seems not to toss -scroll.
> the arguments window takes are the ones accepted as args by the mount call.
I guess the window man page could be improved by mentioning
all accepted args, both in synopsis and in description
(e.g. -hide is mentioned, -scroll is not).
Currently, w.r.t. scrolling only rio's -s is mentioned,
hence my confusion.
(sorry for the way I wrote my original message;
it probably would have been clearer if I would have said:
1) window(1) does not mention window's -scroll flag
2) 'window -m -scroll command' does not toss -scroll
but tries to execute '-scroll command'
)
Axel.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] /bin/window -s or -scroll flag?
2004-02-12 13:00 ` Axel Belinfante
@ 2004-02-12 15:48 ` Rob Pike
2004-02-12 15:48 ` Rob Pike
1 sibling, 0 replies; 7+ messages in thread
From: Rob Pike @ 2004-02-12 15:48 UTC (permalink / raw)
To: 9fans
>> window -scroll works fine for me.
>
> for me as well, unless window is invoked with -m and -scroll,
> because the 'toss geometry arguments to find command' case
> seems not to toss -scroll
you've read the code. there's a two-line trivial fix. here it is:
case -scroll
shift
-rob
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] /bin/window -s or -scroll flag?
2004-02-12 13:00 ` Axel Belinfante
2004-02-12 15:48 ` Rob Pike
@ 2004-02-12 15:48 ` Rob Pike
2004-02-12 16:17 ` Axel Belinfante
1 sibling, 1 reply; 7+ messages in thread
From: Rob Pike @ 2004-02-12 15:48 UTC (permalink / raw)
To: 9fans
there's an even shorter fix:
< case -hide
> case -hide -scroll
-rob
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [9fans] /bin/window -s or -scroll flag?
2004-02-12 15:48 ` Rob Pike
@ 2004-02-12 16:17 ` Axel Belinfante
0 siblings, 0 replies; 7+ messages in thread
From: Axel Belinfante @ 2004-02-12 16:17 UTC (permalink / raw)
To: 9fans
Yes, that's what I have too. My concern was the version on sources.
(ok. instead of my 'bug report' I should have sent the diff.
I'll learn, someday, hopefully...)
Axel.
> there's an even shorter fix:
>
> < case -hide
> > case -hide -scroll
>
> -rob
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2004-02-12 16:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-01-26 21:26 [9fans] /bin/window -s or -scroll flag? Axel Belinfante
2004-02-11 23:27 ` matt
2004-02-12 0:26 ` rob pike, esq.
2004-02-12 13:00 ` Axel Belinfante
2004-02-12 15:48 ` Rob Pike
2004-02-12 15:48 ` Rob Pike
2004-02-12 16:17 ` Axel Belinfante
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).