https://github.com/PowerShell/openssh-portable/blob/latestw_all/contrib/win32/win32compat/tncon.c
不知道有没有人有空将这个 c 代码用 go 重写出来,可以变成一个 go package ,最好不用 cgo (除非能让用户方便地编译安装)。
最好 queue_terminal_window_change_event() 能变成一个 go 回调。
在用 go 重写时,可以参考这个代码: https://github.com/chzyer/readline/blob/master/rawreader_windows.go
或许 ChatGPT 可以帮忙减轻一部分工作。
关联 issue: https://github.com/trzsz/trzsz-ssh/issues/5#issuecomment-1579581438
