Open LuckyChen666 opened 3 years ago
Can you give me some more info about this issue (sample code)? How do you send this Ctrl-C?
Can you give me some more info about this issue (sample code)? How do you send this Ctrl-C?
I am implementing a web terminal.When i want to cmd ctrl+c,the error appeared. con, _ := telnet.Dial("tcp", addr) for{ buf := make([]byte, 1024) n, err := con.Read(buf) if err != nil { fmt.Println( err) break } }
Can you give me some more info about this issue (sample code)? How do you send this Ctrl-C?
I am implementing a web terminal.When i want to cmd ctrl+c,the error appeared. con, _ := telnet.Dial("tcp", addr) for{ buf := make([]byte, 1024) n, err := con.Read(buf) if err != nil { fmt.Println( err) break } }
I have solve it by add cmdData = 242
It seems the cmdData command isn't handled.
Can you share the way you handled it?
unknown command: 242