8000 conn.Read Ctrl+c failed · Issue #21 · ziutek/telnet · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

conn.Read Ctrl+c failed #21

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

Open
LuckyChen666 opened this issue Jan 19, 2021 · 4 comments
Open

conn.Read Ctrl+c failed #21

LuckyChen666 opened this issue Jan 19, 2021 · 4 comments

Comments

@LuckyChen666
Copy link

unknown command: 242

@embeddedgo
Copy link

Can you give me some more info about this issue (sample code)? How do you send this Ctrl-C?

@LuckyChen666
Copy link
Author
LuckyChen666 commented Jan 20, 2021

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
}
}

@LuckyChen666
Copy link
Author

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

@ziutek
Copy link
Owner
ziutek commented Jan 20, 2021

It seems the cmdData command isn't handled.

Can you share the way you handled it?

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

No branches or pull requests

3 participants
0