Skip to content

Instantly share code, notes, and snippets.

@sahara-ooga
Last active February 3, 2021 12:00
Show Gist options
  • Save sahara-ooga/1de37db29f60c2a79c9cf7867df2380d to your computer and use it in GitHub Desktop.
Save sahara-ooga/1de37db29f60c2a79c9cf7867df2380d to your computer and use it in GitHub Desktop.
ログの文字を装飾する
# ruby
# blue and underline
print "\e[34m\e[4mhello\e[0m"
# hello=> nil

SwiftPrettyPrint

output-colorized.log

�[33mSoftware�[0m(
    name: �[36m"SwiftPrettyPrint"�[0m,
    description: �[36m"Pretty print for Swift."�[0m,
    website: �[31mnil�[0m,
    repository: https://github.com/YusukeHosonuma/SwiftPrettyPrint.git,
    packageManagerSupport: (
        cocoaPods: �[34mtrue�[0m,
        carthage: �[34mtrue�[0m,
        swiftPackageManager: �[34mtrue�[0m
    ),
    developers: [
        �[36m"YusukeHosonuma"�[0m: �[33mDeveloper�[0m(
            name: �[36m"Yusuke Hosonuma"�[0m,
            twitterID: �[36m"tobi462"�[0m
        ),

Appearance in terminal in vscode

screeen shot of Appearance in terminal in vscode

Terminal

% echo -e "\e[34m\e[4mhttps://github.com/YusukeHosonuma/SwiftPrettyPrint.git \e[0m"
https://github.com/YusukeHosonuma/SwiftPrettyPrint.git

screenshot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment