Commit 6affec72 authored by v.marcenko's avatar v.marcenko

fix stty error on windows

parent 7c74748a
......@@ -12,10 +12,10 @@
# See the License for the specific language governing permissions and
# limitations under the License.
from sys import stdout, stdin
from sys import stdout, stdin, platform
from os import popen
if stdin.isatty():
if stdin.isatty() and not platform.startswith('win'):
# running interactively
_,TERMWIDTH = [int(v) for v in popen('stty size', 'r').read().split()]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment