MCPcopy Create free account
hub / github.com/mscdex/ssh2 / setWindow

Method setWindow

lib/Channel.js:221–235  ·  view source on GitHub ↗
(rows, cols, height, width)

Source from the content-addressed store, hash-verified

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)

Callers 1

test-exec.jsFile · 0.80

Calls 1

windowChangeMethod · 0.80

Tested by

no test coverage detected