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
运行 trz 报错 #12
Comments
你是用了 msys2 或者 cygwin 的 ssh 吧?这些从 linux 直接迁移过来的 ssh 有问题导致的。 windows 有一个自带的 OpenSSH ,是专门针对 windows 进行修改过的,使用 也可以参考 #4 (comment) 另外安装个新版本。 |
用了
|
看看 ssh 是什么版本的 或者从 https://github.com/PowerShell/Win32-OpenSSH/releases 这里下载个新的 ssh 试试? 如果还是不行,看来我要抽空装个 Windows 11 看看( 我现在用的是 Window 10 )。 |
|
ssh 版本跟我的一样的,看来我要抽空搞个 Windows 11 看看了。 |
@nep-0 方便抓一下日志,发到我的邮箱不? 1、 |
已发送。 |
感谢! 分析了下:
这其实是多了一些 vt100 的控制字符,一般以 我把这些多出来的东西做了过滤,得到了 我也不懂怎么样还原出服务端真实的输出了,不知道为什么会重复输出了 关于 vt100 可以网上搜一下,https://en.wikipedia.org/wiki/ANSI_escape_code 我的处理代码: Lines 160 to 170 in 2b984b8
|
可能是 Windows 或者 PowerShell 的 bug 。可以试试其他的终端: 1、 2、 3、 |
可以编译一个最新的看看(做了一些调整,不知有没有用): git clone https://github.com/trzsz/trzsz-go.git
cd trzsz-go
GOOS=windows go build ./cmd/trzsz
|
我安装 Win11 研究了一下规律,发现每输出一行都会将光标移到上一行的行末,然后重复输出一个字符。 我把那重复的字符过滤掉之后,本地测试是解决了。 可以自己编译一个
|
|
服务端 OS:
Ubuntu 20.04.4 LTS (GNU/Linux 5.4.0-77-generic x86_64)
服务端版本:
trzsz-go 0.1.8
客户端 OS:
Windows 11 Professional 21H2
客户端版本:
trzsz-go 0.1.8
The text was updated successfully, but these errors were encountered: