9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] p9p acme woe
@ 2007-04-17 17:10 Alex Kritikos
  2007-04-17 21:21 ` Russ Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Alex Kritikos @ 2007-04-17 17:10 UTC (permalink / raw)
  To: 9fans

Hi,

In plan9port acme, if I select text in window $winid and write
"addr=dot" to acme/$winid/ctl, acme/$winid/addr doesn't change.  Am I
doing something wrong?

Writing an address to acme/$winid/addr and "dot=addr" to
acme/$winid/ctl changes the selection, though.

Is there a better way, other than writing "addr=dot" and reading
/addr, for an external script to know the position of selected text in
an acme window?

Thanks,
Alex Kritikos


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

* Re: [9fans] p9p acme woe
  2007-04-17 17:10 [9fans] p9p acme woe Alex Kritikos
@ 2007-04-17 21:21 ` Russ Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Russ Cox @ 2007-04-17 21:21 UTC (permalink / raw)
  To: 9fans

> In plan9port acme, if I select text in window $winid and write
> "addr=dot" to acme/$winid/ctl, acme/$winid/addr doesn't change.  Am I
> doing something wrong?
> 
> Writing an address to acme/$winid/addr and "dot=addr" to
> acme/$winid/ctl changes the selection, though.
> 
> Is there a better way, other than writing "addr=dot" and reading
> /addr, for an external script to know the position of selected text in
> an acme window?

You need to hold the files open, which you can't easily
do in shell scripts.  Try the acme(3) library.

Russ



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

end of thread, other threads:[~2007-04-17 21:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-17 17:10 [9fans] p9p acme woe Alex Kritikos
2007-04-17 21:21 ` Russ Cox

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