From: "James A. Robinson" <jimr@highwire.stanford.edu>
To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net>
Subject: [9fans] reading addr always returns #0,#0?
Date: Sat, 31 Aug 2013 10:23:55 -0700 [thread overview]
Message-ID: <CAPd04b6STJ-uzv_XJixzH6zdr0hw0aJbtP9WNMYP9uif3jEfxw@mail.gmail.com> (raw)
[-- 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 --]
next reply other threads:[~2013-08-31 17:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-31 17:23 James A. Robinson [this message]
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
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=CAPd04b6STJ-uzv_XJixzH6zdr0hw0aJbtP9WNMYP9uif3jEfxw@mail.gmail.com \
--to=jimr@highwire.stanford.edu \
--cc=9fans@9fans.net \
/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).