-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35390 from JuliaLang/kc/revrev
Unrevert #34347 and bump Pkg to a version that is compatible with it
- Loading branch information
Showing
14 changed files
with
47 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
if Sys.iswindows() | ||
ttyhascolor(term_type = nothing) = true | ||
else | ||
function ttyhascolor(term_type = get(ENV, "TERM", "")) | ||
startswith(term_type, "xterm") && return true | ||
try | ||
@static if Sys.KERNEL === :FreeBSD | ||
return success(`tput AF 0`) | ||
else | ||
return success(`tput setaf 0`) | ||
end | ||
catch e | ||
return false | ||
end | ||
end | ||
end | ||
function get_have_color() | ||
global have_color | ||
have_color === nothing && (have_color = ttyhascolor()) | ||
return have_color::Bool | ||
end | ||
in(key_value::Pair{Symbol,Bool}, ::TTY) = key_value.first === :color && key_value.second === get_have_color() | ||
haskey(::TTY, key::Symbol) = key === :color | ||
getindex(::TTY, key::Symbol) = key === :color ? get_have_color() : throw(KeyError(key)) | ||
get(::TTY, key::Symbol, default) = key === :color ? get_have_color() : default |
1 change: 1 addition & 0 deletions
1
deps/checksums/Pkg-23da050ea368fade2ff801daf69c928b11ef61ef.tar.gz/md5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
4db13f3b0038a93c2c899af142181533 |
1 change: 1 addition & 0 deletions
1
deps/checksums/Pkg-23da050ea368fade2ff801daf69c928b11ef61ef.tar.gz/sha512
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
20f562ed1c9b86424ead9b6556ea4be2ab116bfe11922a0123418b522cd32dd81b04904f06cb1f28712f125410254f20253c3a5cc58b84622f1c6441daa2b665 |
1 change: 0 additions & 1 deletion
1
deps/checksums/Pkg-8c415b01924eb4452cb7be8438c2bbc0978d1152.tar.gz/md5
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
deps/checksums/Pkg-8c415b01924eb4452cb7be8438c2bbc0978d1152.tar.gz/sha512
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
PKG_BRANCH = master | ||
PKG_SHA1 = 8c415b01924eb4452cb7be8438c2bbc0978d1152 | ||
PKG_SHA1 = 23da050ea368fade2ff801daf69c928b11ef61ef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters