9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] reading addr always returns #0,#0?
@ 2013-08-31 17:23 James A. Robinson
  2013-08-31 17:29 ` James A. Robinson
  0 siblings, 1 reply; 5+ messages in thread
From: James A. Robinson @ 2013-08-31 17:23 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

[-- Attachment #1: Type: text/plain, Size: 474 bytes --]

Say I have an acme window with a $winid of 2.
If I type the following commands:

$ echo -n , | 9p write acme/2/addr
$ echo dot=addr | 9p write acme/2/ctl

I see the entire text of the window get selected.
I had assumed that if I then read addr that I would
get back two numbers, 0 and the final byte offset
of the file (it is a non-zero length file).

However, I get back two zeros:

$ 9p read acme/2/addr
          0           0

What am I missing?

Jim

[-- Attachment #2: Type: text/html, Size: 735 bytes --]

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

end of thread, other threads:[~2013-09-02 15:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-31 17:23 [9fans] reading addr always returns #0,#0? James A. Robinson
2013-08-31 17:29 ` James A. Robinson
2013-09-02 10:13   ` Alexander Sychev
2013-09-02 10:38     ` dexen deVries
2013-09-02 15:25       ` James A. Robinson

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