From 939e0626e535c6584812f40f2177db5dd4128f35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Slobodan=20Mi=C5=A1kovi=C4=87?= Date: Fri, 23 Sep 2016 22:13:23 -0700 Subject: [PATCH] Fix resizing terminal window width not working --- CHANGELOG.md | 1 + src/docker/run.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 35742a66..a4539bb6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). * [Core] Adding support to escape variables in command options (shell and system); * [Cli] Fixing error thrown when `azk scale` command was run, regardless of it being successful or not; * [Cli] Fixing escape character in `azk vm ssh`; + * [Cmds] Fix resizing terminal window in `azk shell` didn't send new width to container * [Sync] Fixing bug for when the path to be synced contained whitespace (#672); * [Sync] Removing `system.name` from the destination sync path, which avoids multiple syncs for extended systems; * [Systems] Fixing load envs from file with `=` in value; diff --git a/src/docker/run.js b/src/docker/run.js index 3530b905..b7e80e36 100644 --- a/src/docker/run.js +++ b/src/docker/run.js @@ -7,7 +7,7 @@ function new_resize(container) { return function() { var dimensions = { h: process.stdout.rows, - w: process.stderr.columns + w: process.stdout.columns }; if (dimensions.h !== 0 && dimensions.w !== 0) {