UserExistsError / conpty

Windows Pseudo Console (ConPTY) for Golang
MIT License
30 stars 12 forks source link

The color output is not displayed correctly. #1

Closed lonnywong closed 2 years ago

lonnywong commented 2 years ago

It works with:

conpty.Start(`ssh -p 1022 root@192.168.1.100`)

But, the output is not displayed correctly:

]0;C:\Windows\System32\OpenSSH\ssh.exe[?25h]0;OpenSSH SSH clientLast login: 
lonnywong commented 2 years ago

We should do that outside the pty.

I need the original output, so don't change it.

Here is my solution: https://github.com/trzsz/trzsz-go/blob/main/trzsz/pty_windows.go