Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[9fans] Scripting acme

127 views
Skip to first unread message

Mauricio CA

unread,
Jun 17, 2011, 7:44:46 PM6/17/11
to
Hi, all,

Could you give me tips on how to script acme in plan9 from user
space? Sorry for asking this question without at least showing some
attempts of my own, but the fact is that I'm unable to grasp how to start.

I would like to do things like these:

* Automatically do something when text is mouse-selected in a specific
window.

* Listen to the keyboard so that after I press some key combination I
get an action like, say, expose a specific window.

Thanks,
Maurício


Alexander Sychev

unread,
Jun 20, 2011, 3:47:03 AM6/20/11
to
Hello!

Look at an example of scripting Acme by Russ Cox.

http://groups.google.com/group/golang-nuts/browse_thread/thread/6e2c12ccfe11b61b/c94bd58c73808ec4?lnk=gst&q=gofmt+command+for+acme#c94bd58c73808ec4

It made for plan9port, for Plan9 it has to be modified a bit.


--
Best regards,
santucco

Robert Raschke

unread,
Jun 20, 2011, 4:50:22 AM6/20/11
to

If you've not seen them yet, then there's the acme Mail and News readers that can serve as nice examples. They're in /acme/mail and /acme/news, respectively. I don't think they do any listening on keyboard tho'. Not entirely sure how you'd deal with that. The win (/acme/bin/source/win) could maybe be instructive for that.

Robby

0 new messages