-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split input events into separate package #276
Conversation
e9f3e10
to
e6d258b
Compare
Can you say more about this? Are you referring to C code in |
I believe it was the |
bfed3cd
to
e983516
Compare
Does this mean you have a working build now? |
Yes, we do, though it means we have closed the door on going back to Aside from this practical concern, it would be ideal if a datatype representing keyboard keys existed somewhere, such that future libraries could standardize on it instead of all defining their own versions. |
Are you implying that this is undesirable for your project? I gather that you're implying that it is, but I am wanting to understand your situation clearly.
I'm not sure where this is coming from. I mean, I read the linked ticket discussion and I read the comment there about defining a type that had a correspondence to Vty's key event types. I wouldn't recommend doing that. I'm gathering that in the case of the application you're working on, due to a build issue you ran into, it would be convenient to have some data types in Also, I wanted to mention that it would be helpful to me in the future (in order to help you!) if you could ping me (on a Swarm issue, say) or stop by the repo and open a ticket about the problem you're having before proposing a solution and writing a patch. That way, it's possible I could help you resolve the issue earlier, but barring that, it would help me work together with you on a solution that would work for me and save you time writing patches I might not accept. |
Although I led with this concern when opening the PR, I suppose it's not the primary motivator. I think we've already burned a couple of other bridges precluding a return to
Yeah, I think I made a bit more of a generalization here than necessary. You've identified the precise issue---we would like to avoid defining our own type that has a correspondence to Vty's key event types. We'd appreciate your perspective if you could chime in directly in response to swarm-game/swarm#1978 (comment) .
Thanks---I figured it would be courteous to check the feasibility of a library split before bothering you with our issue. I don't mind that this particular PR is not accepted, rather I enjoyed the exercise of figuring out how to do a library split. |
Okay, thanks! I don't keep up with
Okay, thanks - will do!
Okay, I see, thanks. I forget that sometimes that's the spirit in which patches are submitted. I guess I've had enough experiences where people submit patches that they have already become very attached to, in which case sometimes that puts me in a difficult position of having to decline the patch and hopefully find another workable solution. That's gotten me into the habit of wanting to talk things over first to avoid disappointment and frustration (usually for myself, sometimes for both parties). I'm going to close this, but I'm going to give this some more thought and take a deeper look at the Swarm discussion and chime in there when I get time - should be in the next couple of days. Thanks! |
Context: swarm-game/swarm#1978 (comment)
The dependence on the C module (and a certain system library) limits the portability of the
vty
package in its entirety. Inswarm
, we have a "headless" server binary that depends on the definitions of keys to parseswarm
"programs". Splitting the key definitions out ofvty
and intovty-inputs
would allow us to compile our server binary without extra dependencies.I acknowledge that this would add an extra step in the release process for
vty
, but hopefully the change is minor enough to be palatable.