{"id":335107,"date":"2022-06-29T09:00:13","date_gmt":"2022-06-29T09:00:13","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=335107"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=335107","title":{"rendered":"<span>\u041a\u0430\u043a \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0446\u0432\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 Linux<\/span>"},"content":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/mv\/gm\/pz\/mvgmpzw9onkqgrweqjczvm7qbrm.png\" data-src=\"https:\/\/habrastorage.org\/webt\/mv\/gm\/pz\/mvgmpzw9onkqgrweqjczvm7qbrm.png\"\/><\/div>\n<p><i><font color=\"#858585\">\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 bash \u0441\u043a\u0440\u0438\u043f\u0442, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0434\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u044f\u0440\u043a\u0438\u043c \u0438 \u043a\u0440\u0430\u0441\u043e\u0447\u043d\u044b\u043c<\/font><\/i><\/p>\n<p>  \u041e\u0431\u044b\u0447\u043d\u043e \u0432\u044b\u0432\u043e\u0434 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043e\u043d\u043e\u0445\u0440\u043e\u043c\u043d\u043e. \u041e\u0434\u043d\u0430\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u0440\u0430\u0441\u043e\u043a \u2014 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0442\u0435\u043a\u0441\u0442\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0446\u0432\u0435\u0442\u043e\u0432 \u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u043a\u043d\u0430\u043c\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u0432 \u0442\u0451\u043c\u043d\u043e\u043c \u0438 \u0441\u0432\u0435\u0442\u043b\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0430\u0445.<\/p>\n<p>  <a href=\"https:\/\/www.codeproject.com\/KB\/Articles\/5329247\/color.zip\">\u2b07\ufe0f <b>\u0421\u043a\u0430\u0447\u0430\u0442\u044c color.zip \u2014 2.7 KB<\/b><\/a> <i><font color=\"#858585\">(\u043f\u0440\u0438\u043c. \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 \u2014 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435)<\/font><\/i><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<h2><font color=\"#076184\">\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/font><\/h2>\n<p>  \u0422\u0435\u043a\u0441\u0442, \u0432\u044b\u0432\u043e\u0434\u0438\u043c\u044b\u0439 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u043e\u0446\u0432\u0435\u0442\u043d\u044b\u043c \u0438 \u043d\u0435 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e\u0433\u043e \u0441\u043f\u043e\u0441\u043e\u0431\u0430 \u0443\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0430 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0437\u0430\u0445\u043e\u0442\u0435\u0442\u044c, \u0447\u0442\u043e\u0431\u044b \u043e\u0448\u0438\u0431\u043a\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u043b\u0430\u0441\u044c \u043a\u0440\u0430\u0441\u043d\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c, \u0443\u0441\u043f\u0435\u0445 \u2014 \u0437\u0435\u043b\u0451\u043d\u044b\u043c, \u0438\u043b\u0438 \u0447\u0442\u043e\u0431\u044b \u0432\u0430\u0436\u043d\u0430\u044f \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f \u0431\u044b\u043b\u0430 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0430 \u0436\u0438\u0440\u043d\u044b\u043c \u0448\u0440\u0438\u0444\u0442\u043e\u043c.<\/p>\n<p>  \u0414\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0446\u0432\u0435\u0442\u0430 \u043a \u0432\u044b\u0432\u043e\u0434\u0443 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u2014 \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u0437\u0430\u0434\u0430\u0447\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0437\u0430\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u0432 \u0432\u044b\u0432\u043e\u0434\u0435 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0445 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u043f\u0435\u0440\u0435\u0434 \u0432\u0430\u0448\u0438\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c.<\/p>\n<h2><font color=\"#076184\">\u0426\u0432\u0435\u0442\u0430 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435<\/font><\/h2>\n<p>  \u0427\u0442\u043e\u0431\u044b \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0446\u0432\u0435\u0442\u043d\u043e\u0439 \u0442\u0435\u043a\u0441\u0442, \u0432\u0430\u043c \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0432\u044b\u043f\u043e\u043b\u043d\u0438\u0442\u044c <code>printf<\/code> \u0438\u043b\u0438 <code>echo -e<\/code> \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432 \u0434\u043b\u044f \u0442\u0440\u0435\u0431\u0443\u0435\u043c\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430 (<code>-e<\/code> \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u043f\u0440\u0435\u0442\u0430\u0446\u0438\u044e \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u044e\u0449\u0438\u0445 \u0441\u0438\u043c\u0432\u043e\u043b\u043e\u0432), \u0434\u0430\u043b\u0435\u0435 \u0432\u044b\u0432\u0435\u0441\u0442\u0438 \u0432\u0430\u0448 \u0442\u0435\u043a\u0441\u0442, \u0430 \u0437\u0430\u0442\u0435\u043c (\u043f\u0440\u043e\u0441\u0442\u043e \u0434\u043b\u044f \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e\u0441\u0442\u0438) \u0441\u0431\u0440\u043e\u0441\u0438\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u043e\u0431\u0440\u0430\u0442\u043d\u043e \u043a \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e. \u0412 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043d\u0438\u0436\u0435 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u044b \u043a\u043e\u0434\u044b:  <\/p>\n<div class=\"scrollable-table\">\n<table>\n<tbody>\n<tr>\n<th>\u0426\u0432\u0435\u0442<\/th>\n<th>\u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439<\/th>\n<th>\u0424\u043e\u043d<\/th>\n<\/tr>\n<tr>\n<td>\u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439<\/td>\n<td>\\033[39m<\/td>\n<td>\\033[49m<\/td>\n<\/tr>\n<tr>\n<td>\u0427\u0451\u0440\u043d\u044b\u0439<\/td>\n<td>\\033[30m<\/td>\n<td>\\033[40m<\/td>\n<\/tr>\n<tr>\n<td>\u0422\u0451\u043c\u043d\u043e-\u043a\u0440\u0430\u0441\u043d\u044b\u0439<\/td>\n<td>\\033[31m<\/td>\n<td>\\033[41m<\/td>\n<\/tr>\n<tr>\n<td>\u0422\u0451\u043c\u043d\u043e-\u0437\u0435\u043b\u0451\u043d\u044b\u0439<\/td>\n<td>\\033[32m<\/td>\n<td>\\033[42m<\/td>\n<\/tr>\n<tr>\n<td>\u0422\u0451\u043c\u043d\u043e-\u0436\u0451\u043b\u0442\u044b\u0439 \u00ab\u041e\u0440\u0430\u043d\u0436\u0435\u0432\u044b\u0439\u00bb<\/td>\n<td>\\033[33m<\/td>\n<td>\\033[43m<\/td>\n<\/tr>\n<tr>\n<td>\u0422\u0451\u043c\u043d\u043e-\u0441\u0438\u043d\u0438\u0439<\/td>\n<td>\\033[34m<\/td>\n<td>\\033[44m<\/td>\n<\/tr>\n<tr>\n<td>\u0422\u0435\u043c\u043d\u043e-\u043f\u0443\u0440\u043f\u0443\u0440\u043d\u044b\u0439<\/td>\n<td>\\033[35m<\/td>\n<td>\\033[45m<\/td>\n<\/tr>\n<tr>\n<td>\u0422\u0451\u043c\u043d\u043e-\u0433\u043e\u043b\u0443\u0431\u043e\u0439<\/td>\n<td>\\033[36m<\/td>\n<td>\\033[46m<\/td>\n<\/tr>\n<tr>\n<td>\u0421\u0432\u0435\u0442\u043b\u043e-\u0441\u0435\u0440\u044b\u0439<\/td>\n<td>\\033[37m<\/td>\n<td>\\033[47m<\/td>\n<\/tr>\n<tr>\n<td>\u0422\u0451\u043c\u043d\u043e-\u0441\u0435\u0440\u044b\u0439<\/td>\n<td>\\033[90m<\/td>\n<td>\\033[100m<\/td>\n<\/tr>\n<tr>\n<td>\u041a\u0440\u0430\u0441\u043d\u044b\u0439<\/td>\n<td>\\033[91m<\/td>\n<td>\\033[101m<\/td>\n<\/tr>\n<tr>\n<td>\u0417\u0435\u043b\u0451\u043d\u044b\u0439<\/td>\n<td>\\033[92m<\/td>\n<td>\\033[101m<\/td>\n<\/tr>\n<tr>\n<td>\u041e\u0440\u0430\u043d\u0436\u0435\u0432\u044b\u0439<\/td>\n<td>\\033[93m<\/td>\n<td>\\033[103m<\/td>\n<\/tr>\n<tr>\n<td>\u0421\u0438\u043d\u0438\u0439<\/td>\n<td>\\033[94m<\/td>\n<td>\\033[104m<\/td>\n<\/tr>\n<tr>\n<td>\u041f\u0443\u0440\u043f\u0443\u0440\u043d\u044b\u0439<\/td>\n<td>\\033[95m<\/td>\n<td>\\033[105m<\/td>\n<\/tr>\n<tr>\n<td>\u0413\u043e\u043b\u0443\u0431\u043e\u0439<\/td>\n<td>\\033[96m<\/td>\n<td>\\033[106m<\/td>\n<\/tr>\n<tr>\n<td>\u0411\u0435\u043b\u044b\u0439<\/td>\n<td>\\033[97m<\/td>\n<td>\\033[107m<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<p>\u0438 \u043a\u043e\u0434 \u0441\u0431\u0440\u043e\u0441\u0430 <b><font color=\"#163C51\">\\033[0m<\/font><\/b><\/p>\n<p>  \u0424\u043e\u0440\u043c\u0430\u0442 \u0441\u0442\u0440\u043e\u043a\u0438 \u0434\u043b\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430:<\/p>\n<pre><code class=\"bash\">\"\\033[\" + \"&lt;0 or 1, meaning normal or bold>;\" + \"&lt;color code> + \"m\"<\/code><\/pre>\n<p>  \u0418 \u0434\u043b\u044f \u0444\u043e\u043d\u0430:<\/p>\n<pre><code class=\"bash\">\"\\033[\" + \"&lt;color code>\" + \"m\"<\/code><\/pre>\n<p>  \u042d\u0442\u0438 \u043a\u043e\u0434\u044b \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u044b \u0432\u043c\u0435\u0441\u0442\u0435 \u0434\u043b\u044f \u043e\u0434\u043d\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0433\u043e \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430 \u0438 \u0444\u043e\u043d\u0430.<\/p>\n<h2><font color=\"#076184\">\u041f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u043c \u043a\u043e\u0434<\/font><\/h2>\n<p>  \u041f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u0440\u0430\u0441\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430:<\/p>\n<pre><code class=\"bash\">printf \"\\033[91mThis is red text\\033[0m\"<\/code><\/pre>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u0440\u0430\u0441\u043d\u043e\u0433\u043e \u0442\u0435\u043a\u0441\u0442\u0430 \u043d\u0430 \u0431\u0435\u043b\u043e\u043c \u0444\u043e\u043d\u0435:<\/p>\n<pre><code class=\"bash\">printf \"\\033[91m\\033[107mThis is red text on a white background\\033[0m\"<\/code><\/pre>\n<p>  \u042d\u0442\u043e \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0433\u0440\u043e\u043c\u043e\u0437\u0434\u043a\u043e, \u0442\u0430\u043a \u0447\u0442\u043e \u044f \u0441\u043e\u0437\u0434\u0430\u043b \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0441\u0442\u044b\u0445 \u043f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0442 \u0437\u0430\u0434\u0430\u0442\u044c \u0446\u0432\u0435\u0442 \u0442\u0435\u043a\u0441\u0442\u0430 \u0431\u043e\u043b\u0435\u0435 \u0438\u0437\u044f\u0449\u043d\u044b\u043c \u0441\u043f\u043e\u0441\u043e\u0431\u043e\u043c.<\/p>\n<h2><font color=\"#076184\">\u0412\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438<\/font><\/h2>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0432\u0430\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u0432\u0435\u0449\u0438, \u043a\u0430\u043a:<\/p>\n<pre><code class=\"bash\">WriteLine \"This is red text\" \"Red\" WriteLine \"This is red text on a white background\" \"Red\" \"White\"<\/code><\/pre>\n<p>  \u2026 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0449\u0435.<\/p>\n<pre><code class=\"bash\">useColor=\"true\" # \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430 false, \u0435\u0441\u043b\u0438 \u0432\u044b \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u0442\u0435, \u0447\u0442\u043e \u0432\u0430\u0448\u0430 \u0441\u0440\u0435\u0434\u0430 \u043f\u043b\u043e\u0445\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0435\u0442 \u0446\u0432\u0435\u0442\u0430.  # \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u043a\u043e\u0434 \u0446\u0432\u0435\u0442\u0430 \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0446\u0432\u0435\u0442\u043e\u0432 \u043f\u0435\u0440\u0435\u0434\u043d\u0435\u0433\u043e\/\u0437\u0430\u0434\u043d\u0435\u0433\u043e \u043f\u043b\u0430\u043d\u0430 # \u042d\u0442\u043e\u0442 \u043a\u043e\u0434 \u043f\u0435\u0440\u0435\u0434\u0430\u0451\u0442\u0441\u044f \u044d\u0445\u043e\u043c \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u043f\u0435\u0440\u0435\u0434 \u0432\u044b\u0432\u043e\u0434\u043e\u043c \u0442\u0435\u043a\u0441\u0442\u0430 # \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0446\u0432\u0435\u0442\u043d\u043e\u0433\u043e \u0432\u044b\u0432\u043e\u0434\u0430. # # \u0441\u0442\u0440\u043e\u043a\u0430 foreground (\u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0432\u0435\u0442) \u0438\u043c\u044f_\u0446\u0432\u0435\u0442\u0430. \u041d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0437\u0430\u0434\u0430\u043d \u0444\u043e\u043d. #        \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \"Default\", \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u0446\u0432\u0435\u0442 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e # \u0441\u0442\u0440\u043e\u043a\u0430 background (\u0444\u043e\u043d) \u0438\u043c\u044f_\u0446\u0432\u0435\u0442\u0430. \u041d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f $color_background #        \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0444\u043e\u043d\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430. # \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 function Color () {      local foreground=$1     local background=$2      if [ \"$foreground\" == \"\" ];  then foreground=\"Default\"; fi     if [ \"$background\" == \"\" ]; then background=\"$color_background\"; fi      local colorString='\\033['      # \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430     case \"$foreground\" in         \"Default\")      colorString='\\033[0;39m';;         \"Black\" )       colorString='\\033[0;30m';;         \"DarkRed\" )     colorString='\\033[0;31m';;         \"DarkGreen\" )   colorString='\\033[0;32m';;         \"DarkYellow\" )  colorString='\\033[0;33m';;         \"DarkBlue\" )    colorString='\\033[0;34m';;         \"DarkMagenta\" ) colorString='\\033[0;35m';;         \"DarkCyan\" )    colorString='\\033[0;36m';;         \"Gray\" )        colorString='\\033[0;37m';;         \"DarkGray\" )    colorString='\\033[1;90m';;         \"Red\" )         colorString='\\033[1;91m';;         \"Green\" )       colorString='\\033[1;92m';;         \"Yellow\" )      colorString='\\033[1;93m';;         \"Blue\" )        colorString='\\033[1;94m';;         \"Magenta\" )     colorString='\\033[1;95m';;         \"Cyan\" )        colorString='\\033[1;96m';;         \"White\" )       colorString='\\033[1;97m';;         *)              colorString='\\033[0;39m';;     esac      # \u0426\u0432\u0435\u0442\u0430 \u0444\u043e\u043d\u0430     case \"$background\" in         \"Default\" )     colorString=\"${colorString}\\033[49m\";;         \"Black\" )       colorString=\"${colorString}\\033[40m\";;         \"DarkRed\" )     colorString=\"${colorString}\\033[41m\";;         \"DarkGreen\" )   colorString=\"${colorString}\\033[42m\";;         \"DarkYellow\" )  colorString=\"${colorString}\\033[43m\";;         \"DarkBlue\" )    colorString=\"${colorString}\\033[44m\";;         \"DarkMagenta\" ) colorString=\"${colorString}\\033[45m\";;         \"DarkCyan\" )    colorString=\"${colorString}\\033[46m\";;         \"Gray\" )        colorString=\"${colorString}\\033[47m\";;         \"DarkGray\" )    colorString=\"${colorString}\\033[100m\";;         \"Red\" )         colorString=\"${colorString}\\033[101m\";;         \"Green\" )       colorString=\"${colorString}\\033[102m\";;         \"Yellow\" )      colorString=\"${colorString}\\033[103m\";;         \"Blue\" )        colorString=\"${colorString}\\033[104m\";;         \"Magenta\" )     colorString=\"${colorString}\\033[105m\";;         \"Cyan\" )        colorString=\"${colorString}\\033[106m\";;         \"White\" )       colorString=\"${colorString}\\033[107m\";;         *)              colorString=\"${colorString}\\033[49m\";;     esac      echo \"${colorString}\" }   # \u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443) \u043d\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0438\u043b\u0438 \u0444\u043e\u043d\u043e\u0432\u044b\u0439  # \u0446\u0432\u0435\u0442\u0430 # # \u0441\u0442\u0440\u043e\u043a\u0430 The text to output (\u0422\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430). \u041d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0437\u0430\u0434\u0430\u043d \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0432\u0435\u0442. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443. # \u0441\u0442\u0440\u043e\u043a\u0430 Foreground color name (\u0418\u043c\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430). \u041d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d \u0444\u043e\u043d. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \"Default\", \u043a\u043e\u0442\u043e\u0440\u044b\u0439 #        \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e # \u0441\u0442\u0440\u043e\u043a\u0430 Background color name (\u0418\u043c\u044f \u0444\u043e\u043d\u043e\u0432\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430). \u041d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f $color_background, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 #        \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0444\u043e\u043d\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 function WriteLine () {      local resetColor='\\033[0m'      local str=$1     local forecolor=$2     local backcolor=$3      if [ \"$str\" == \"\" ]; then         printf \"\\n\"         return;     fi      # \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044f %s. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \"--\" \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0442\u0440\u043e\u043a \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a     if [ \"$useColor\" == \"true\" ]; then         local colorString=$(Color ${forecolor} ${backcolor})         printf \"${colorString}%s${resetColor}\\n\" \"${str}\"     else         printf \"%s\\n\" \"${str}\"     fi }  # \u0412\u044b\u0432\u043e\u0434\u0438\u0442 \u0441\u0442\u0440\u043e\u043a\u0443 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \/ \u0444\u043e\u043d\u043e\u0432\u044b\u0435 \u0446\u0432\u0435\u0442\u0430 # # \u0441\u0442\u0440\u043e\u043a\u0430 The text to output (\u0422\u0435\u043a\u0441\u0442 \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430). \u041d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0437\u0430\u0434\u0430\u043d \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0432\u0435\u0442. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0435\u0440\u0435\u0432\u043e\u0434 \u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0443. # \u0441\u0442\u0440\u043e\u043a\u0430 Foreground color name (\u0418\u043c\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430). \u041d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430, \u0435\u0441\u043b\u0438 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d \u0444\u043e\u043d. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \"Default\", \u043a\u043e\u0442\u043e\u0440\u044b\u0439 #        \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e # \u0441\u0442\u0440\u043e\u043a\u0430 Background color name (\u0418\u043c\u044f \u0444\u043e\u043d\u043e\u0432\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430). \u041d\u0435\u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u0430. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f $color_background, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043e\u0441\u043d\u043e\u0432\u0435 #        \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0444\u043e\u043d\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 function Write () {     local resetColor=\"\\033[0m\"      local forecolor=$1     local backcolor=$2     local str=$3      if [ \"$str\" == \"\" ];  then         return;     fi      # \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u043d\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0444\u043e\u0440\u043c\u0430\u0442\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044f %s. \u042d\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0430\u043c \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \"--\" \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u0441\u0442\u0440\u043e\u043a \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a     if [ \"$useColor\" == \"true\" ]; then         local colorString=$(Color ${forecolor} ${backcolor})         printf \"${colorString}%s${resetColor}\" \"${str}\"     else         printf \"%s\" \"$str\"     fi }<\/code><\/pre>\n<p>  <\/p>\n<h2><font color=\"#076184\">\u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u0442\u0451\u043c\u043d\u044b\u043c \u0438 \u0441\u0432\u0435\u0442\u043b\u044b\u043c \u0440\u0435\u0436\u0438\u043c\u0430\u043c\u0438<\/font><\/h2>\n<p>  \u0412\u043e \u043c\u043d\u043e\u0433\u0438\u0445 \u0434\u0438\u0441\u0442\u0440\u0438\u0431\u0443\u0442\u0438\u0432\u0430\u0445 Linux \u0438 Unix \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0438\u043c\u0435\u0435\u0442 \u0447\u0451\u0440\u043d\u044b\u0439 \u0444\u043e\u043d \u0438 \u0431\u0435\u043b\u044b\u0439 \u0442\u0435\u043a\u0441\u0442. \u0412 macOS \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0431\u0435\u043b\u044b\u0439 \u0444\u043e\u043d \u0441 \u0447\u0451\u0440\u043d\u044b\u043c \u0442\u0435\u043a\u0441\u0442\u043e\u043c. \u041a\u043e\u043d\u0435\u0447\u043d\u043e, \u0435\u0441\u0442\u044c <a href=\"https:\/\/github.com\/rocky\/shell-term-background\/blob\/master\/term-background.bash\">\u0441\u043f\u043e\u0441\u043e\u0431\u044b \u0438 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430<\/a> \u0434\u043b\u044f \u0441\u043c\u0435\u043d\u044b \u0442\u0451\u043c\u043d\u043e\u0433\u043e\/\u0441\u0432\u0435\u0442\u043b\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430, \u043d\u043e \u0432\u0430\u043c \u043f\u0440\u0438\u0434\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0438 \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0432\u0441\u0451 \u043d\u0430 \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435, \u0447\u0442\u043e\u0431\u044b \u043d\u0430\u0439\u0442\u0438 \u0442\u043e, \u0447\u0442\u043e \u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0438\u043c\u0435\u043d\u043d\u043e \u0432\u0430\u043c.<\/p>\n<p>  \u042f \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u044e, \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c mac, \u0442\u043e \u043c\u043e\u0436\u0435\u043c \u0432\u0441\u0451 \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u043c\u044b \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u043c \u0447\u0435\u0440\u043d\u044b\u0439 \u0444\u043e\u043d \u0438 \u0431\u0435\u043b\u044b\u0439 \u0442\u0435\u043a\u0441\u0442. \u042f \u0442\u0430\u043a\u0436\u0435 \u0441\u0442\u0430\u0440\u0430\u044e\u0441\u044c \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0446\u0432\u0435\u0442\u043e\u0432 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e, \u0430 \u0442\u0430\u043c, \u0433\u0434\u0435 \u043c\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430, \u044f \u043f\u0440\u0435\u0434\u043f\u043e\u0447\u0438\u0442\u0430\u044e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0445 \u0446\u0432\u0435\u0442\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435, \u043f\u043e \u043c\u043e\u0438\u043c \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u043c, \u0431\u0443\u0434\u0443\u0442 \u0445\u043e\u0440\u043e\u0448\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0432\u0435\u0437\u0434\u0435.<\/p>\n<pre><code class=\"bash\"># \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442 \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430. \u042d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u043d\u0430\u0438\u0432\u043d\u0430\u044f \u0434\u043e\u0433\u0430\u0434\u043a\u0430 # \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0442\u0440\u0438\u043f\u043b\u0435\u0442 RGB, \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043e\u0442 0 \u0434\u043e 64K function getBackground () {      if [[ $OSTYPE == 'darwin'* ]]; then         osascript -e \\         'tell application \"Terminal\"             get background color of selected tab of window 1         end tell'     else          # \u0421\u043c. https:\/\/github.com\/rocky\/shell-term-background\/blob\/master\/term-background.bash         # \u0434\u043b\u044f \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u0438\u0441\u0447\u0435\u0440\u043f\u044b\u0432\u0430\u044e\u0449\u0435\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043e \u0442\u043e\u043c, \u043a\u0430\u043a \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c \u0446\u0432\u0435\u0442 \u0444\u043e\u043d\u0430. \u0421\u0435\u0439\u0447\u0430\u0441 \u043c\u044b \u043f\u0440\u043e\u0441\u0442\u043e         # \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0438\u043c, \u0447\u0442\u043e \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u044b, \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0449\u0438\u0435 macOS, \u0438\u043c\u0435\u044e\u0442 \u0447\u0451\u0440\u043d\u044b\u0439 \u0444\u043e\u043d.          echo \"0,0,0\" # \u0437\u0434\u0435\u0441\u044c \u043c\u044b \u0434\u0435\u043b\u0430\u0435\u043c \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u044f     fi }  # \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442, \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u043b\u0438 \u0442\u0435\u043a\u0443\u0449\u0438\u0439 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u0432 \u0442\u0451\u043c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 (\u0442\u0451\u043c\u043d\u044b\u0439 \u0444\u043e\u043d, \u0441\u0432\u0435\u0442\u043b\u044b\u0439 \u0442\u0435\u043a\u0441\u0442). # \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \"true\", \u0435\u0441\u043b\u0438 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u0442\u0451\u043c\u043d\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435; false \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 function isDarkMode () {      local bgColor=$(getBackground)          IFS=','; colors=($bgColor); IFS=' ';      # \u0424\u043e\u043d \u0431\u043e\u043b\u0435\u0435 \u0438\u043b\u0438 \u043c\u0435\u043d\u0435\u0435 \u0442\u0451\u043c\u043d\u044b\u0439?     if [ ${colors[0]} -lt 20000 ] &amp;&amp; [ ${colors[1]} -lt 20000 ] &amp;&amp; [ ${colors[2]} -lt 20000 ]; then         echo \"true\"     else         echo \"false\"     fi }<\/code><\/pre>\n<p>  \u041a\u0430\u043a \u0442\u043e\u043b\u044c\u043a\u043e \u043c\u044b \u043f\u043e\u043b\u0443\u0447\u0438\u043c \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043e \u0442\u043e\u043c, \u0441 \u0447\u0435\u043c \u0438\u043c\u0435\u0435\u043c \u0434\u0435\u043b\u043e, \u044f \u0432\u044b\u043f\u043e\u043b\u043d\u044e \u043a\u043e\u0434 \u043d\u0438\u0436\u0435:<\/p>\n<pre><code class=\"bash\">darkmode=$(isDarkMode)  # \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043f\u0440\u0435\u0434\u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0435 \u0446\u0432\u0435\u0442\u0430. \u041e\u0431\u0440\u0430\u0442\u0438\u0442\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435, \u0447\u0442\u043e \u043c\u044b \u043d\u0435 \u043c\u043e\u0436\u0435\u043c \u0434\u043e\u0441\u0442\u043e\u0432\u0435\u0440\u043d\u043e \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0438\u0442\u044c \u0444\u043e\u043d # \u0446\u0432\u0435\u0442 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u044b \u0438\u0437\u0431\u0435\u0433\u0430\u0435\u043c \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0447\u0451\u0440\u043d\u044b\u0439 \u0438\u043b\u0438 \u0431\u0435\u043b\u044b\u0439 \u0446\u0432\u0435\u0442 \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430 # \u0438\u043b\u0438 \u0444\u043e\u043d\u0430. \u0412\u044b \u0432\u0441\u0435\u0433\u0434\u0430 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \"\u0411\u0435\u043b\u044b\u0439\" \u0438 \"\u0427\u0451\u0440\u043d\u044b\u0439\", \u0435\u0441\u043b\u0438 \u0432\u0430\u043c \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0443\u0436\u043d\u043e # \u044d\u0442\u043e \u0441\u043e\u0447\u0435\u0442\u0430\u043d\u0438\u0435, \u043d\u043e \u043f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0449\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u0443\u0439\u0442\u0435 if [ \"$darkmode\" == \"true\" ]; then     color_primary=\"Blue\"     color_mute=\"Gray\"     color_info=\"Yellow\"     color_success=\"Green\"     color_warn=\"DarkYellow\"     color_error=\"Red\" else     color_primary=\"DarkBlue\"     color_mute=\"Gray\"     color_info=\"Magenta\"     color_success=\"DarkGreen\"     color_warn=\"DarkYellow\"     color_error=\"Red\" fi<\/code><\/pre>\n<p>  \u0438 \u0442\u0430\u043a\u0436\u0435 \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0441\u044c \u044d\u0442\u0438\u043c\u0438 \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438:<\/p>\n<pre><code class=\"bash\">WriteLine \"Predefined colors on default background\" WriteLine  WriteLine \"Default colored text\" \"Default\" WriteLine \"Primary colored text\" $color_primary WriteLine \"Mute colored text\"    $color_mute WriteLine \"Info colored text\"    $color_info WriteLine \"Success colored text\" $color_success WriteLine \"Warning colored text\" $color_warn WriteLine \"Error colored text\"   $color_error  WriteLine WriteLine \"Default color on predefined background\" WriteLine  WriteLine \"Default colored background\" \"Default\" WriteLine \"Primary colored background\" \"Default\" $color_primary WriteLine \"Mute colored background\"    \"Default\" $color_mute WriteLine \"Info colored background\"    \"Default\" $color_info WriteLine \"Success colored background\" \"Default\" $color_success WriteLine \"Warning colored background\" \"Default\" $color_warn WriteLine \"Error colored background\"   \"Default\" $color_error <\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u0443\u044e \u043a\u0430\u0440\u0442\u0438\u043d\u0443 \u0432 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 Linux:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/tc\/dt\/9s\/tcdt9sh15mb8anke9arddthhgo4.png\" data-src=\"https:\/\/habrastorage.org\/webt\/tc\/dt\/9s\/tcdt9sh15mb8anke9arddthhgo4.png\"\/><\/div>\n<p>  \u0418 \u0442\u0430\u043a\u0443\u044e \u0432 macOS:<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/fg\/62\/on\/fg62on5fxjo1rcevklqsqxu3das.png\" data-src=\"https:\/\/habrastorage.org\/webt\/fg\/62\/on\/fg62on5fxjo1rcevklqsqxu3das.png\"\/><\/div>\n<p>  \u0412\u0441\u0451 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0442\u0430\u043d\u043e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u043c \u0435\u0449\u0451 \u043e\u0434\u043d\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0442 \u043a\u043e\u043d\u0442\u0440\u0430\u0441\u0442\u043d\u044b\u0439 \u043f\u0435\u0440\u0435\u0434\u043d\u0438\u0439 \u043f\u043b\u0430\u043d \u043d\u0430 \u043b\u044e\u0431\u043e\u043c \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c \u043d\u0430\u043c\u0438 \u0444\u043e\u043d\u0435:<\/p>\n<pre><code class=\"bash\"># \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0438\u043c\u044f \u0446\u0432\u0435\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u0443\u0434\u0435\u0442 \u0441\u043b\u0443\u0436\u0438\u0442\u044c \u0432 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u0430\u0441\u0442\u043d\u043e\u0433\u043e # \u0446\u0432\u0435\u0442\u0430 \u0434\u043b\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430 \u0444\u043e\u043d\u0430. \u042d\u0442\u0430 \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u043f\u0440\u0435\u0434\u043f\u043e\u043b\u0430\u0433\u0430\u0435\u0442, \u0447\u0442\u043e $darkmode \u0431\u044b\u043b # \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e. # # \u0441\u0442\u0440\u043e\u043a\u0430 background color name (\u0438\u043c\u044f \u0444\u043e\u043d\u043e\u0432\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430). # \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0441\u0442\u0440\u043e\u043a\u0443, \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u044e\u0449\u0443\u044e \u0438\u043c\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u0430\u0441\u0442\u043d\u043e\u0433\u043e \u0446\u0432\u0435\u0442\u0430 function ContrastForeground () {      local color=$1     if [ \"$color\" == \"\" ]; then color=\"Default\"; fi      if [ \"$darkmode\" == \"true\" ]; then         case \"$color\" in             \"Default\" )     echo \"White\";;             \"Black\" )       echo \"White\";;             \"DarkRed\" )     echo \"White\";;             \"DarkGreen\" )   echo \"White\";;             \"DarkYellow\" )  echo \"White\";;             \"DarkBlue\" )    echo \"White\";;             \"DarkMagenta\" ) echo \"White\";;             \"DarkCyan\" )    echo \"White\";;             \"Gray\" )        echo \"Black\";;             \"DarkGray\" )    echo \"White\";;             \"Red\" )         echo \"White\";;             \"Green\" )       echo \"White\";;             \"Yellow\" )      echo \"Black\";;             \"Blue\" )        echo \"White\";;             \"Magenta\" )     echo \"White\";;             \"Cyan\" )        echo \"Black\";;             \"White\" )       echo \"Black\";;             *)              echo \"White\";;         esac     else         case \"$color\" in             \"Default\" )     echo \"Black\";;             \"Black\" )       echo \"White\";;             \"DarkRed\" )     echo \"White\";;             \"DarkGreen\" )   echo \"White\";;             \"DarkYellow\" )  echo \"White\";;             \"DarkBlue\" )    echo \"White\";;             \"DarkMagenta\" ) echo \"White\";;             \"DarkCyan\" )    echo \"White\";;             \"Gray\" )        echo \"Black\";;             \"DarkGray\" )    echo \"White\";;             \"Red\" )         echo \"White\";;             \"Green\" )       echo \"Black\";;             \"Yellow\" )      echo \"Black\";;             \"Blue\" )        echo \"White\";;             \"Magenta\" )     echo \"White\";;             \"Cyan\" )        echo \"Black\";;             \"White\" )       echo \"Black\";;             *)              echo \"White\";;         esac     fi          echo \"${colorString}\" }<\/code><\/pre>\n<p>  \u0417\u0430\u0442\u0435\u043c, \u0432 \u043f\u043e\u0434\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0435 <code>Color,<\/code> \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435:<\/p>\n<pre><code class=\"bash\">function Color () {      local foreground=$1     local background=$2      if [ \"$foreground\" == \"\" ]; then foreground=\"Default\"; fi     if [ \"$background\" == \"\" ]; then background=\"$color_background\"; fi      if [ \"$foreground\" == \"Contrast\" ]; then         foreground=$(ContrastForeground ${background})     fi          ...<\/code><\/pre>\n<p>  \u2026 \u0438 \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430\u0448 \u0442\u0435\u043a\u0441\u0442 \u0441 \u0438\u0437\u043c\u0435\u043d\u0451\u043d\u043d\u044b\u043c \u0446\u0432\u0435\u0442\u043e\u043c \u0444\u043e\u043d\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u0440\u0430\u0437\u0431\u043e\u0440\u0447\u0438\u0432\u044b\u043c, \u043c\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0441\u0442\u0440\u043e\u043a\u0438:<\/p>\n<pre><code class=\"bash\">WriteLine WriteLine \"Default contrasting color on predefined background\" WriteLine  WriteLine \"Primary colored background\" \"Contrast\" $color_primary WriteLine \"Mute colored background\"    \"Contrast\" $color_mute WriteLine \"Info colored background\"    \"Contrast\" $color_info WriteLine \"Success colored background\" \"Contrast\" $color_success WriteLine \"Warning colored background\" \"Contrast\" $color_warn WriteLine \"Error colored background\"   \"Contrast\" $color_error<\/code><\/pre>\n<p>  \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 Linux<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/iz\/ev\/cw\/izevcwvn6nt3_nohjwd42wkwxem.png\" data-src=\"https:\/\/habrastorage.org\/webt\/iz\/ev\/cw\/izevcwvn6nt3_nohjwd42wkwxem.png\"\/><\/div>\n<p>  \u2026 \u0438 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 macOS<\/p>\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/af\/sn\/o8\/afsno8xyf9prf9kpyj534yiyfr0.png\" data-src=\"https:\/\/habrastorage.org\/webt\/af\/sn\/o8\/afsno8xyf9prf9kpyj534yiyfr0.png\"\/><\/div>\n<hr\/>\n<p>\u041d\u041b\u041e \u043f\u0440\u0438\u043b\u0435\u0442\u0435\u043b\u043e \u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u043b\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u043c\u043e\u043a\u043e\u0434 \u0434\u043b\u044f \u0447\u0438\u0442\u0430\u0442\u0435\u043b\u0435\u0439 \u043d\u0430\u0448\u0435\u0433\u043e \u0431\u043b\u043e\u0433\u0430:<\/p>\n<p>   \u2014 <a href=\"https:\/\/firstvds.ru\/?utm_source=habr&amp;utm_medium=article&amp;utm_campaign=product&amp;utm_content=vds15exeptprogrev\">15% \u043d\u0430 \u0432\u0441\u0435 \u0442\u0430\u0440\u0438\u0444\u044b VDS<\/a> (\u043a\u0440\u043e\u043c\u0435 \u0442\u0430\u0440\u0438\u0444\u0430 \u041f\u0440\u043e\u0433\u0440\u0435\u0432) \u2014 <b><font color=\"#163C51\">HABRFIRSTVDS<\/font><\/b>.<\/div>\n<\/div>\n<\/div>\n<div class=\"v-portal\" style=\"display:none;\"><\/div>\n<\/div>\n<p> <!----> <!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/company\/first\/blog\/672464\/\"> https:\/\/habr.com\/ru\/company\/first\/blog\/672464\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-1\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<div style=\"text-align:center;\"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/webt\/mv\/gm\/pz\/mvgmpzw9onkqgrweqjczvm7qbrm.png\" data-src=\"https:\/\/habrastorage.org\/webt\/mv\/gm\/pz\/mvgmpzw9onkqgrweqjczvm7qbrm.png\"\/><\/div>\n<p><i><font color=\"#858585\">\u041d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0435 \u0440\u0443\u043a\u043e\u0432\u043e\u0434\u0441\u0442\u0432\u043e \u0438 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 bash \u0441\u043a\u0440\u0438\u043f\u0442, \u0447\u0442\u043e\u0431\u044b \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0434\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u0431\u043e\u043b\u0435\u0435 \u044f\u0440\u043a\u0438\u043c \u0438 \u043a\u0440\u0430\u0441\u043e\u0447\u043d\u044b\u043c<\/font><\/i><\/p>\n<p>  \u041e\u0431\u044b\u0447\u043d\u043e \u0432\u044b\u0432\u043e\u0434 \u0442\u0435\u043a\u0441\u0442\u0430 \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u043b\u0438\u0448\u043a\u043e\u043c \u043c\u043e\u043d\u043e\u0445\u0440\u043e\u043c\u043d\u043e. \u041e\u0434\u043d\u0430\u043a\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u043a\u0440\u0430\u0441\u043e\u043a \u2014 \u0441\u043e\u0432\u0441\u0435\u043c \u043d\u0435\u0441\u043b\u043e\u0436\u043d\u043e. \u0412 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043a\u0440\u0438\u043f\u0442\u0435 \u044f \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043c\u0435\u0442\u043e\u0434\u044b \u0434\u043b\u044f \u0432\u044b\u0432\u043e\u0434\u0430 \u0442\u0435\u043a\u0441\u0442\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u0445 \u0446\u0432\u0435\u0442\u043e\u0432 \u0438 \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u043e\u043a\u043d\u0430\u043c\u0438 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0430 \u0432 \u0442\u0451\u043c\u043d\u043e\u043c \u0438 \u0441\u0432\u0435\u0442\u043b\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0430\u0445.<\/p>\n<p>  <a href=\"https:\/\/www.codeproject.com\/KB\/Articles\/5329247\/color.zip\">\u2b07\ufe0f <b>\u0421\u043a\u0430\u0447\u0430\u0442\u044c color.zip \u2014 2.7 KB<\/b><\/a> <i><font color=\"#858585\">(\u043f\u0440\u0438\u043c. \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 \u2014 \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430\u0446\u0438\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435)<\/font><\/i>  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-335107","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/335107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=335107"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/335107\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=335107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=335107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=335107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}