Skip to content

Commit 8c0bf18

Browse files
committed
Enable icons in Windows consoles.
1 parent a2fd852 commit 8c0bf18

File tree

1 file changed

+4
-13
lines changed

1 file changed

+4
-13
lines changed

src/_pytask/console.py

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44

55
import functools
66
import inspect
7-
import os
8-
import sys
97
from contextlib import suppress
108
from pathlib import Path
119
from typing import TYPE_CHECKING
@@ -54,13 +52,6 @@
5452
]
5553

5654

57-
_IS_WINDOWS_TERMINAL = "WT_SESSION" in os.environ
58-
_IS_WINDOWS = sys.platform == "win32"
59-
60-
61-
_IS_LEGACY_WINDOWS = _IS_WINDOWS and not _IS_WINDOWS_TERMINAL
62-
63-
6455
_HORIZONTAL_PADDING = (0, 1, 0, 1)
6556

6657

@@ -70,10 +61,10 @@
7061
7162
"""
7263

73-
ARROW_DOWN_ICON = "|" if _IS_LEGACY_WINDOWS else "⬇"
74-
FILE_ICON = "" if _IS_LEGACY_WINDOWS else "📄 "
75-
PYTHON_ICON = "" if _IS_LEGACY_WINDOWS else "🐍 "
76-
TASK_ICON = "" if _IS_LEGACY_WINDOWS else "📝 "
64+
ARROW_DOWN_ICON = "⬇"
65+
FILE_ICON = "📄 "
66+
PYTHON_ICON = "🐍 "
67+
TASK_ICON = "📝 "
7768

7869

7970
_EDITOR_URL_SCHEMES: dict[str, str] = {

0 commit comments

Comments
 (0)