Skip to content
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

[Question]: willing to make vterm into a separate lib? #20

Open
erikh opened this issue Apr 12, 2020 · 7 comments
Open

[Question]: willing to make vterm into a separate lib? #20

erikh opened this issue Apr 12, 2020 · 7 comments
Labels
enhancement New feature or request
Milestone

Comments

@erikh
Copy link

erikh commented Apr 12, 2020

I'm curious, I have a couple of tools which could benefit from a comprehensive virtual terminal.

Thanks!

@aaronjanse
Copy link
Owner

Absolutely! I plan on refactoring 3mux this week after receiving some helpful bug reports. I'll use that as an opportunity to make vterm usable on its own.

For the foreseeable future, I think most vterm bugs will be found through 3mux. It would be helpful to share an issue tracker between 3mux and vterm (with special tags to specify which of the two is broken).

For this reason, would it be okay if vterm remains under this repo, but importable on its own via github.com/aaronjanse/3mux/vterm?

Either way, I'll make sure vterm's gets some documentation love.

@erikh
Copy link
Author

erikh commented Apr 12, 2020 via email

@aaronjanse
Copy link
Owner

aaronjanse commented Apr 13, 2020

Does this sound good for a rough idea for a vterm API?

  • rune channel for input
  • interface for rendering output (color, set char at position, etc)

@aaronjanse aaronjanse added the enhancement New feature or request label Apr 14, 2020
@aaronjanse aaronjanse added this to the v0.3 milestone Apr 17, 2020
@dehorsley
Copy link

This would be great! May I suggest using a Write function to accept input, rather than a channel. That way it can satisfy io.Writer interface and users of your library can combine it with other standard library functions (like io.Copy) and 3rd party libraries.

@aaronjanse
Copy link
Owner

I've already got you covered 😉

func (v *VTerm) ProcessStdout(input *bufio.Reader) {

@aaronjanse
Copy link
Owner

A not-yet-stable vterm package is available in v0.3.0. See fuzz/main.go for example usage.

@erikh
Copy link
Author

erikh commented Apr 26, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants