We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 77b128d + c249d10 commit 2098d54Copy full SHA for 2098d54
Sources/swift-help/main.swift
@@ -93,7 +93,8 @@ struct SwiftHelp: ParsableCommand {
93
}
94
95
func printIntro() {
96
- let is256Color = ProcessEnv.vars["TERM"] == "xterm-256color"
+ let is256Color = ProcessEnv.block["TERM"] == "xterm-256color" ||
97
+ ProcessEnv.block["TERM"] == "screen-256color"
98
let orangeRed = is256Color ? "\u{001b}[1;38;5;196m" : ""
99
let plain = is256Color ? "\u{001b}[0m" : ""
100
let plainBold = is256Color ? "\u{001b}[1m" : ""
0 commit comments