You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
你好,我看myssh.go中有个Enter方法 传入w io.Writer, r io.Reader接口就行,然后分别读取终端输入 然后写入到输出.但是r.ListenStdin()和w.Run()之后 登录机器后 不支持tab键和方向键
部分代码如下:
var w *myssh.MyWriter
var r *myssh.MyReader
w = myssh.NewWriter()
r = myssh.NewReader()
session.Stdout = w
session.Stderr = os.Stdin
session.Stdin = r
r.ListenStdin()
w.Run()
The text was updated successfully, but these errors were encountered:
你好,我看myssh.go中有个Enter方法 传入w io.Writer, r io.Reader接口就行,然后分别读取终端输入 然后写入到输出.但是r.ListenStdin()和w.Run()之后 登录机器后 不支持tab键和方向键
部分代码如下:
The text was updated successfully, but these errors were encountered: