(connId connections.ConnectionId, cols, rows uint32)
| 400 | } |
| 401 | |
| 402 | func (m *CLIBridgeModule) onWindowChange(connId connections.ConnectionId, cols, rows uint32) { |
| 403 | sess := m.getSession(connId) |
| 404 | if sess == nil { |
| 405 | return |
| 406 | } |
| 407 | |
| 408 | sess.mu.Lock() |
| 409 | defer sess.mu.Unlock() |
| 410 | |
| 411 | if sess.PtyFile != nil { |
| 412 | pty.Setsize(sess.PtyFile, &pty.Winsize{ |
| 413 | Cols: uint16(cols), |
| 414 | Rows: uint16(rows), |
| 415 | }) |
| 416 | } |
| 417 | } |
| 418 | |
| 419 | func (m *CLIBridgeModule) onAutoComplete(req suggestions.AutoCompleteRequest) suggestions.AutoCompleteRequest { |
| 420 | if req.Cmd != `cli` { |
nothing calls this directly
no test coverage detected