diff options
| author | ruki <[email protected]> | 2021-01-30 00:54:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2021-01-30 00:54:53 +0800 |
| commit | b4989e2b90851b5724e5511c8bab7a6f42ac2a76 (patch) | |
| tree | 725e2912a2142892ef7d8c898a423bab4f921fc6 /xmake/core/base | |
| parent | 74e9ed083f9ff8110f3bad808179b1dd0f75d0bb (diff) | |
fix tty
Diffstat (limited to 'xmake/core/base')
| -rw-r--r-- | xmake/core/base/tty.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/core/base/tty.lua b/xmake/core/base/tty.lua index abaaf74f0..67b0a1fbf 100644 --- a/xmake/core/base/tty.lua +++ b/xmake/core/base/tty.lua @@ -205,8 +205,8 @@ function tty.has_emoji() local term = tty.term() local winos = require("base/winos") - -- before win7 on cmd? disable it - if has_emoji == nil and winos.version():le("win7") then + -- before win7? disable it + if has_emoji == nil and (os.host() == "windows" and winos.version():le("win7")) then has_emoji = false end |
