diff --git a/src/shell/app.jsx b/src/shell/app.jsx index 5d437cf..8114703 100644 --- a/src/shell/app.jsx +++ b/src/shell/app.jsx @@ -43,11 +43,14 @@ term.onTerminalReady = async () => { ] }; + // Create a shell client, with interface similar to child_process + // With an additional method client.resize(cols, rows) for TTY sizing. let client; if (args.v === '1') { client = new DockerExecClient(options); await client.execute(); + // Wrap client.resize to switch argument ordering const resize = client.resize; client.resize = (c, r) => resize.call(client, r, c); } else if (args.v === '2') {