(rows, cols, height, width)
| 219 | |
| 220 | // Session type-specific methods ============================================= |
| 221 | setWindow(rows, cols, height, width) { |
| 222 | if (this.server) |
| 223 | throw new Error('Client-only method called in server mode'); |
| 224 | |
| 225 | if (this.type === 'session' |
| 226 | && (this.subtype === 'shell' || this.subtype === 'exec') |
| 227 | && this.writable |
| 228 | && this.outgoing.state === 'open') { |
| 229 | this._client._protocol.windowChange(this.outgoing.id, |
| 230 | rows, |
| 231 | cols, |
| 232 | height, |
| 233 | width); |
| 234 | } |
| 235 | } |
| 236 | |
| 237 | signal(signalName) { |
| 238 | if (this.server) |
no test coverage detected