-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Support copy/pasting #7
Comments
I don't know either. I'm new to Go but here's some obvious sleuth-work that's certainly no mystery to you. One place that obviously varies on single keypress vs. pasting is how many bytes you are going to read from Currently, Line 134 in 791bd3b
It's also worth mentioning that, of course, entering character "k" is going to look the same as pasting a single character "k" to So one naive idea is for Another less ergonomic idea is to always return a sequence Anyways, great lib. I've built a CLI app with go-tea that I can leave open and use to quickly translate/lookup words between languages for personal use and to learn Go. Being able to paste words/sentences into it would be a next layer of polish one day. Some coming weekend, I'll vendor go-terminput and go-tea into my project and play with it myself to see if any of these assumptions are reliable in practice. |
Awesome! Yeah definitely let me know if your technique works out, sounds fine to me! |
Not sure how this is typically done
The text was updated successfully, but these errors were encountered: