diff options
| author | ruki <[email protected]> | 2020-05-31 21:43:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-31 21:43:47 +0800 |
| commit | 41bd7287e986fcf881c8d20494058c576bbcf252 (patch) | |
| tree | 49d6b3d7082d87d37ff656ace7a0cd710245fda6 /xmake/core/sandbox/modules/utils.lua | |
| parent | 3c1d11faa2ca0c6e6eb1664ee938d5c49867b02d (diff) | |
add tty and replace clearline
Diffstat (limited to 'xmake/core/sandbox/modules/utils.lua')
| -rw-r--r-- | xmake/core/sandbox/modules/utils.lua | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/xmake/core/sandbox/modules/utils.lua b/xmake/core/sandbox/modules/utils.lua index 8b7ca4c5f..8492b1302 100644 --- a/xmake/core/sandbox/modules/utils.lua +++ b/xmake/core/sandbox/modules/utils.lua @@ -172,16 +172,6 @@ function sandbox_utils.wprint(format, ...) utils.warning(vformat(format, ...)) end --- clear the current terminal line -function sandbox_utils.clearline() - - -- we need not clear line if is not a tty - if not io.isatty() then - return - end - sandbox_utils.printf("\x1b[2K\r") -end - -- assert function sandbox_utils.assert(value, format, ...) |
