-
Notifications
You must be signed in to change notification settings - Fork 50
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
Re-Implementation of Term and VNC Features. #161
Conversation
astounding work, this vnc/term stuff has always needed help and testing and I really appreciate you getting into this code. a couple thoughts...
|
+Adding missing context
Hi, thanks for the reply.
For Term, no, it wasn’t strictly necessary. For VNC, it’s actually not useful since it handles a lot of unreadable bytes. It was initially converting []byte to string, sending it, and then converting it back to []byte. But this conversion is unnecessary for Term, and it's better to only convert when absolutely needed. The app is basically acting as a proxy in between. I suggest leaving it as is. Could the conversion break if someone is using an uncommon encoding?
I had to fix all the broken tests by using context.TODO(). I’m not entirely sure if that’s the correct approach. I also fixed TermProxy and wrote a basic test for VNCProxy, although it might break if the display is set to Serial 0.
I don’t mind moving my PoC to the project. However, I’m not really a fan of writing documentation. I prefer reading code instead. I can add it in a later PR, right after this one, so I can point to the correct library. Later Edit: |
No worries then, we are going to v0.2.0! ok on everything else, let's get this merged and prep for the release |
When you're ready make an examples dir and bring in your project. This is ok to merge as is |
Hi, recently I opened two issues:
#147: This issue was caused by a breakline that prevented me from using xtermjs.org. After removing the breakline, it worked fine.
#148: I was unable to use VNC at all.
After some research, I decided to re-implement the solution since I use this library frequently, and these features are important to me.
Additionally, I created a proof of concept (POC), hosted in this repository: https://github.com/ricardoalcantara/go-proxmox-term-and-vnc, which I will soon incorporate into my own project.
I would like to contribute my work and I'm open to further discussion.