Describe the problem
Even if I close PuTTY and reopen it, the problem cannot be resolved. I can only perform a reboot.
To reproduce
- Connect a Windows computer to a Linux server using a CH340 USB serial cable via PuTTY.
- Run this code
package main
import (
"log"
"go.bug.st/serial"
)
func main() {
ports, err := serial.GetPortsList()
log.Println("Available serial ports: ", ports)
if err != nil {
log.Fatal(err)
}
}
- The opened PuTTY terminal cannot input or output.
Please double-check that you have reported each of the following
before submitting the issue.
Expected behavior
when serial.GetPortsList is called, it should not affect the already open terminals.
Operating system and version
Centos 9
Please describe your hardware setup
normal x86
Additional context
No response
Issue checklist
Describe the problem
Even if I close PuTTY and reopen it, the problem cannot be resolved. I can only perform a reboot.
To reproduce
Please double-check that you have reported each of the following
before submitting the issue.
Expected behavior
when serial.GetPortsList is called, it should not affect the already open terminals.
Operating system and version
Centos 9
Please describe your hardware setup
normal x86
Additional context
No response
Issue checklist