9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] acme(4) and addr=dot
@ 2010-03-06  3:37 Micah Stetson
  2010-03-06 13:11 ` roger peppe
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Micah Stetson @ 2010-03-06  3:37 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

I think this may apply to all versions of acme, but I'm running into
it on p9p.  First, acme(4) claims that a read on a window's addr file
returns the current address as a pair of character offsets m and n, in
'#m,#n' format or just '#m' if m and n are equal.  It looks like it
really returns m and n as two space-padded integer values.

But that's just a documentation bug.  What's really bothering me is
that I can't seem to get the value of dot.  I've tried this:

% echo -n 'addr=dot' | 9p write acme/70/ctl
% 9p read acme/70/addr
          0           0 %

Window 70's dot is somewhere on line 16.  Thinking maybe the ctl file
had to stay open, I tried this:

% {echo 'addr=dot'; 9p read acme/70/addr >[1=2]} | 9p write acme/70/ctl
          0           0 %

No help.  Am I doing something wrong?

Micah



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-03-06 19:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-06  3:37 [9fans] acme(4) and addr=dot Micah Stetson
2010-03-06 13:11 ` roger peppe
2010-03-06 15:13 ` David Leimbach
2010-03-06 15:16   ` erik quanstrom
2010-03-06 16:21     ` David Leimbach
2010-03-06 16:48       ` erik quanstrom
2010-03-06 19:52         ` David Leimbach
2010-03-06 18:34   ` roger peppe
2010-03-06 18:41 ` Eoghan Sherry
2010-03-06 18:54   ` Micah Stetson
2010-03-06 18:55   ` ron minnich

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).