Tell us your ideas to improve PTerm! #66
Replies: 2 comments 3 replies
-
Hi Marvin, PTerm is great, thanks much for that! One thing that I noticed is the following: When I run
I get
while
produces
The example is taken from Golang's documentation here which states "Spaces are always added between operands". What do you think? Would it make sense to support that as well? Thanks and keep up the great work, Michael |
Beta Was this translation helpful? Give feedback.
-
Hi @MarvinJWendt! Discovered this project through a recent HackerNews post and wanted to say PTerm is a great project so far in my experience. I saw you were asking for improvement ideas so I wanted to send in my use case and see if any ideas shake out of it. As PTerm is right now, it seems well tailored to embed directly into a CLI tool and directly feed a single local terminal. In my use, I'm trying to shim PTerm into a custom golang-based ssh server that could be hosting dozens of remote connections with PTerm generating content that is fed back to their terminals over ssh. To my knowledge, this isn't possible in PTerm's current state, because the input (keyboard) is tied to the local execution environment and also assumes there is only one terminal window size as shared global state. In the ssh scenario, I can have numerous terminal sizes active simultaneously as well as a unique input feed per ssh session. However, I did notice that the output (io.Writer) was pluggable for a lot of the printers and that was a great starting point for me to think about solving these other issues. From there, I forked PTerm to play with it for my needs and was able to extract the issues identified above into a As far as feature proposals, the changes needed for this are pretty sweeping so I can understand if there isn't an interest, but you may see some value in the future to separate out the Terminal as a pluggable interface for printers. The Thanks again for this cool project! |
Beta Was this translation helpful? Give feedback.
-
If you have any suggestions about what can be integrated into PTerm, or what can be used to improve PTerm, this is the place to discuss them 🚀
Beta Was this translation helpful? Give feedback.
All reactions