From 4e3eee33fcff3e528f58957494e4bb84109d2c8e Mon Sep 17 00:00:00 2001 From: ziajka Date: Tue, 29 Aug 2017 10:08:10 +0200 Subject: [PATCH] Windows console bugfix tests --- gns3server/utils/asyncio/embed_shell.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gns3server/utils/asyncio/embed_shell.py b/gns3server/utils/asyncio/embed_shell.py index 6c7d9828..765d1ca1 100644 --- a/gns3server/utils/asyncio/embed_shell.py +++ b/gns3server/utils/asyncio/embed_shell.py @@ -190,6 +190,11 @@ class ShellConnection(TelnetConnection): @asyncio.coroutine def connected(self): + # prompt_toolkit internally checks if it's on windows during output rendering but + # we need to force that we use Vt100_Output not Win32_Output + from prompt_toolkit import renderer + renderer.is_windows = lambda: False + def get_size(): return self._size