> 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
