1/ opening the event file disables menu management. one can
write 'menu' to ctl (should still be undocumented) to re-enable it.

2/ xfideventwrite() (src/cmd/acme/xfid.c) doesn't seem to handle
"keyboard insert" events (e.g. "KI275 275 0 1 e"; third integers
is a flag; acme(4) only describes writing event with a flag to 1).
one can still insert text using the addr/data files, e.g. simulating
the previous "KI" event with:

  $ echo -n '#275' | 9p write acme/796/addr # or '#275,#275'
  $ echo -n e | 9p write acme/796/data

3/ in my experience, at least on UNIX, something like sxhkd[0] has
been preferable to acme events for shortcuts, albeit imperfect. in
particular, I remember frequently hitting a race or something
(iirc in 9pserve) when registering an "event handler" (reading
acme event files) on all buffers.

hope it helps,

[0]: https://github.com/baskerville/sxhkd

On Sat, Mar 29, 2025 at 1:30 AM m via 9fans <[email protected]> wrote:

> Sorry I wasn't really clear, I'm talking about, in your example,
> `acme/29/event`. acme(4) explains I can also receive keyboard events and I
> do, I can get the characters I enter, but sending them back in has the
> behaviour I explained. I'm using `wineventloop` from acme.rc, and my event
> function is trivial:
>
> ```
> fn event {
>     winwritevent $*
> }
>
> newwindow
> wineventloop
> ```
>
> As I said I don't have errors when using the go API, only with the acme.rc
> one. I don't have anything special in +Errors
>
> --
> Matthieu
> *9fans <https://9fans.topicbox.com/latest>* / 9fans / see discussions
> <https://9fans.topicbox.com/groups/9fans> + participants
> <https://9fans.topicbox.com/groups/9fans/members> + delivery options
> <https://9fans.topicbox.com/groups/9fans/subscription> Permalink
> <https://9fans.topicbox.com/groups/9fans/T08b139f442c68dca-M336f69c7e238c2194c8283b1>
>

------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/T08b139f442c68dca-M3087eb6d571865be8f1e80f6
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to