V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
V2EX  ›  LonnyWong  ›  全部回复第 21 页 / 共 29 页
回复总数  573
1 ... 13  14  15  16  17  18  19  20  21  22 ... 29  
有一个 known hosts 的小问题,终于找到解决办法了: https://github.com/golang/go/issues/29286#issuecomment-1160958614
你是通过 ssh 端口转发到本地,实际 http proxy 服务不是自己搭建的,是别人提供的?

ssh 端口转发,除了监听 tcp 端口外( 这个同一服务器的其他人也能用 ),还可以监听 unix socket ,只要设置合适的权限,其他人就用不了啦。
恭喜 OP ,1k 是个里程碑,也是个新起点。

我开源的这几个 https://github.com/trzsz 距离 1k 还有很长的路,加油~
2023 年 6 月 21 日
回复了 kingpo 创建的主题 问与答 github 上有哪些超级有用的项目?
2023 年 6 月 20 日
回复了 ebushicao 创建的主题 Windows 时至 2023 的今天, winget 还是 scoop?
我选 scoop
2023 年 6 月 16 日
回复了 iixy 创建的主题 Apple 想从 windows 换到 mac, v 站程序员多,能说说有啥缺点吗?
我见过不少人不会设置 mac 妙控板轻触点击的,然后就骂 mac 超级难用,要换回 Windows 的。
2023 年 6 月 7 日
回复了 LonnyWong 创建的主题 程序员 求助:有人有空用 go 实现这段 c 代码吗?
@lysS 这个真的就这个文件,外加一个 .h
2023 年 6 月 7 日
回复了 LonnyWong 创建的主题 程序员 求助:有人有空用 go 实现这段 c 代码吗?
@ysc3839 我感觉 https://github.com/moby/term/blob/9c3c875fad924eb6c9dd32a361b5fc0a49a4feb9/windows/ansi_reader.go#L34 这个稍微改一下,或许也是可以的,看作者会不会支持了。
2023 年 6 月 7 日
回复了 LonnyWong 创建的主题 程序员 求助:有人有空用 go 实现这段 c 代码吗?
@ysc3839 关联 issue 里说的问题 https://github.com/trzsz/trzsz-ssh/issues/5#issuecomment-1579581438
Ctrl + Space 键的问题。

另外,我发现 https://github.com/PowerShell/openssh-portable/blob/latestw_all/contrib/win32/win32compat/tncon.c 这里面订阅窗口大小变更事件的做法挺好的,比我每秒检测一下窗口大小有没有变化好多了。
2023 年 6 月 7 日
回复了 LonnyWong 创建的主题 程序员 求助:有人有空用 go 实现这段 c 代码吗?
2023 年 6 月 7 日
回复了 LonnyWong 创建的主题 程序员 求助:有人有空用 go 实现这段 c 代码吗?
@Masoud2023
@cppc

不是纯 Go ,只是最好不用 CGO ,可以调用 win32 的 dll ,参考 https://github.com/chzyer/readline/blob/master/rawreader_windows.go 这个来实现。
2023 年 6 月 7 日
回复了 LonnyWong 创建的主题 程序员 求助:有人有空用 go 实现这段 c 代码吗?
@ysc3839 我说的慢是指 Windows 的 stream IO 特别慢。从 trzsz 进程,将数据通过 stdin 传给 ConTPY 时,这个过程超级慢。
2023 年 6 月 7 日
回复了 LonnyWong 创建的主题 程序员 求助:有人有空用 go 实现这段 c 代码吗?
@ysc3839 https://github.com/trzsz/trzsz-go 这个就是用 ConPTY 的,超级慢。

然后 https://github.com/trzsz/trzsz-ssh 是直接连远程服务器的,没用 ConPTY ,如果远程服务器不是 Windows ,就很快。
2023 年 6 月 7 日
回复了 LonnyWong 创建的主题 程序员 求助:有人有空用 go 实现这段 c 代码吗?
@ysc3839 Win11 也不支持 Ctrl + Space ,从 os.Stdin 读不到任何数据,从 ReadConsoleInputW 是可以读到的。但不能与 os.Stdin 同时用,用 ReadConsoleInputW 就得确保所有的键都转换正确,要不然就可能引入其他的问题。
2023 年 6 月 7 日
回复了 LonnyWong 创建的主题 程序员 求助:有人有空用 go 实现这段 c 代码吗?
@ysc3839 我感觉也是。ReadConsoleForTermEmul 这个是专门为 ssh 开发的,感觉兼容性应该会做的很不错。NewAnsiReader 我看他首页的目标也是 term helper functions 。主要是键盘能按出的组合键太多了,我不清楚他们之间会有什么样的差异,或者作者自己会很清楚。
2023 年 6 月 7 日
回复了 LonnyWong 创建的主题 程序员 求助:有人有空用 go 实现这段 c 代码吗?
@proxytoworld 对,就一个文件。然后我在网上找到了 https://github.com/moby/term/blob/9c3c875fad924eb6c9dd32a361b5fc0a49a4feb9/windows/ansi_reader.go#L34

我不知道这个 NewAnsiReader 和 ReadConsoleForTermEmul 会有什么区别。Ctrl + Space 以及 窗口变更大小时的事件,估计是还不支持的。给作者提了个 issue: https://github.com/moby/term/issues/44 ,不知作者会怎么看。
2023 年 6 月 7 日
回复了 LonnyWong 创建的主题 程序员 求助:有人有空用 go 实现这段 c 代码吗?
@deorth 哈,说的好,我也想有钱收。开源搞了这么久,只有一个哥们赞赏了,见 https://github.com/trzsz/trzsz-go 最下面的感谢。
2023 年 6 月 7 日
回复了 LonnyWong 创建的主题 程序员 求助:有人有空用 go 实现这段 c 代码吗?
@bigtang 应该是可以的,我只是没空搞。看有没有人有兴趣参与。
https://github.com/vitalets/github-trending-repos/issues/32#issuecomment-1577712489

这个翻译不错:
Built-in ssh client that supports trzsz ( trz / tsz ), supports selecting (searching) servers for login.
1 ... 13  14  15  16  17  18  19  20  21  22 ... 29  
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2759 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 21ms · UTC 15:32 · PVG 23:32 · LAX 08:32 · JFK 11:32
♥ Do have faith in what you're doing.