UNPKG

@turbocolor/colorshelll

Version:
2 lines 6.47 kB
document.write('<link rel="stylesheet" href="https://github.githubassets.com/assets/gist-embed-5687a589e344.css">') document.write('<div id=\"gist116469704\" class=\"gist\">\n <div class=\"gist-file\" translate=\"no\">\n <div class=\"gist-data\">\n <div class=\"js-gist-file-update-container js-task-list-container file-box\">\n <div id=\"file-colorshelll-sh\" class=\"file my-2\">\n \n <div itemprop=\"text\" class=\"Box-body p-0 blob-wrapper data type-shell \">\n\n \n<div class=\"js-check-bidi js-blob-code-container blob-code-content\">\n\n <template class=\"js-file-alert-template\">\n <div data-view-component=\"true\" class=\"flash flash-warn flash-full d-flex flex-items-center\">\n <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n <path fill-rule=\"evenodd\" d=\"M8.22 1.754a.25.25 0 00-.44 0L1.698 13.132a.25.25 0 00.22.368h12.164a.25.25 0 00.22-.368L8.22 1.754zm-1.763-.707c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0114.082 15H1.918a1.75 1.75 0 01-1.543-2.575L6.457 1.047zM9 11a1 1 0 11-2 0 1 1 0 012 0zm-.25-5.25a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0v-2.5z\"><\/path>\n<\/svg>\n \n <span>\n 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.\n <a href=\"https://github.co/hiddenchars\" target=\"_blank\">Learn more about bidirectional Unicode characters<\/a>\n <\/span>\n\n\n <div data-view-component=\"true\" class=\"flash-action\"> <a href=\"{{ revealButtonHref }}\" data-view-component=\"true\" class=\"btn-sm btn\"> Show hidden characters\n \n<\/a>\n<\/div>\n<\/div><\/template>\n<template class=\"js-line-alert-template\">\n <span aria-label=\"This line has hidden Unicode characters\" data-view-component=\"true\" class=\"line-alert tooltipped tooltipped-e\">\n <svg aria-hidden=\"true\" height=\"16\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" data-view-component=\"true\" class=\"octicon octicon-alert\">\n <path fill-rule=\"evenodd\" d=\"M8.22 1.754a.25.25 0 00-.44 0L1.698 13.132a.25.25 0 00.22.368h12.164a.25.25 0 00.22-.368L8.22 1.754zm-1.763-.707c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0114.082 15H1.918a1.75 1.75 0 01-1.543-2.575L6.457 1.047zM9 11a1 1 0 11-2 0 1 1 0 012 0zm-.25-5.25a.75.75 0 00-1.5 0v2.5a.75.75 0 001.5 0v-2.5z\"><\/path>\n<\/svg>\n<\/span><\/template>\n\n <table class=\"highlight tab-size js-file-line-container js-code-nav-container js-tagsearch-file\" data-tab-size=\"8\" data-paste-markdown-skip data-tagsearch-lang=\"Shell\" data-tagsearch-path=\"colorshelll.sh\">\n <tr>\n <td id=\"file-colorshelll-sh-L1\" class=\"blob-num js-line-number js-code-nav-line-number js-blob-rnum\" data-line-number=\"1\"><\/td>\n <td id=\"file-colorshelll-sh-LC1\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c1\">echo<\/span> -e <span class=\"pl-s\"><span class=\"pl-pds\">&quot;<\/span>\\033[31m ■ Red Foreground<span class=\"pl-pds\">&quot;<\/span><\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-colorshelll-sh-L2\" class=\"blob-num js-line-number js-code-nav-line-number js-blob-rnum\" data-line-number=\"2\"><\/td>\n <td id=\"file-colorshelll-sh-LC2\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c1\">echo<\/span> -e <span class=\"pl-s\"><span class=\"pl-pds\">&quot;<\/span>\\033[32m ■ Green Foreground<span class=\"pl-pds\">&quot;<\/span><\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-colorshelll-sh-L3\" class=\"blob-num js-line-number js-code-nav-line-number js-blob-rnum\" data-line-number=\"3\"><\/td>\n <td id=\"file-colorshelll-sh-LC3\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c1\">echo<\/span> -e <span class=\"pl-s\"><span class=\"pl-pds\">&quot;<\/span>\\033[33m ■ Yellow Foreground<span class=\"pl-pds\">&quot;<\/span><\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-colorshelll-sh-L4\" class=\"blob-num js-line-number js-code-nav-line-number js-blob-rnum\" data-line-number=\"4\"><\/td>\n <td id=\"file-colorshelll-sh-LC4\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c1\">echo<\/span> -e <span class=\"pl-s\"><span class=\"pl-pds\">&quot;<\/span>\\033[34m ■ Blue Foreground<span class=\"pl-pds\">&quot;<\/span><\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-colorshelll-sh-L5\" class=\"blob-num js-line-number js-code-nav-line-number js-blob-rnum\" data-line-number=\"5\"><\/td>\n <td id=\"file-colorshelll-sh-LC5\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c1\">echo<\/span> -e <span class=\"pl-s\"><span class=\"pl-pds\">&quot;<\/span>\\033[35m ■ Magenta Foreground<span class=\"pl-pds\">&quot;<\/span><\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-colorshelll-sh-L6\" class=\"blob-num js-line-number js-code-nav-line-number js-blob-rnum\" data-line-number=\"6\"><\/td>\n <td id=\"file-colorshelll-sh-LC6\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c1\">echo<\/span> -e <span class=\"pl-s\"><span class=\"pl-pds\">&quot;<\/span>\\033[36m ■ Cyan Foreground<span class=\"pl-pds\">&quot;<\/span><\/span><\/td>\n <\/tr>\n <tr>\n <td id=\"file-colorshelll-sh-L7\" class=\"blob-num js-line-number js-code-nav-line-number js-blob-rnum\" data-line-number=\"7\"><\/td>\n <td id=\"file-colorshelll-sh-LC7\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-c1\">echo<\/span> -e <span class=\"pl-s\"><span class=\"pl-pds\">&quot;<\/span>\\033[30m ■ Black Foreground<span class=\"pl-pds\">&quot;<\/span><\/span><\/td>\n <\/tr>\n <\/table>\n<\/div>\n\n\n <\/div>\n\n <\/div>\n<\/div>\n\n <\/div>\n <div class=\"gist-meta\">\n <a href=\"https://gist.github.com/DWhirlpool/2ad045667692e9bfb0985314d18fc94b/raw/e3478d5fd9cab019536bca9d2f8d1497c31a7284/colorshelll.sh\" style=\"float:right\">view raw<\/a>\n <a href=\"https://gist.github.com/DWhirlpool/2ad045667692e9bfb0985314d18fc94b#file-colorshelll-sh\">\n colorshelll.sh\n <\/a>\n hosted with &#10084; by <a>Turbocolor Source<\/a>\n <\/div>\n <\/div>\n<\/div>\n')