mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 16:34:47 +01:00
We need to substract 1 from the the terminal before plotting on windows
This commit is contained in:
parent
7eda99feef
commit
3585aae813
1 changed files with 2 additions and 0 deletions
|
@ -324,6 +324,8 @@ def _tok_colors(cmap, cols):
|
|||
|
||||
def _colors(ns):
|
||||
cols, _ = shutil.get_terminal_size()
|
||||
if tools.ON_WINDOWS:
|
||||
cols -= 1
|
||||
cmap = tools.color_style()
|
||||
akey = next(iter(cmap))
|
||||
if isinstance(akey, str):
|
||||
|
|
Loading…
Add table
Reference in a new issue