{"id":15564,"date":"2016-08-16T16:34:27","date_gmt":"2016-08-16T20:34:27","guid":{"rendered":"http:\/\/mjtsai.com\/blog\/?p=15564"},"modified":"2016-08-16T16:34:27","modified_gmt":"2016-08-16T20:34:27","slug":"colorized-man-pages-understood-and-customized","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2016\/08\/16\/colorized-man-pages-understood-and-customized\/","title":{"rendered":"Colorized Man Pages: Understood and Customized"},"content":{"rendered":"<p><a href=\"http:\/\/boredzo.org\/blog\/archives\/2016-08-15\/colorized-man-pages-understood-and-customized\">Peter Hosey<\/a>:<\/p>\n<blockquote cite=\"http:\/\/boredzo.org\/blog\/archives\/2016-08-15\/colorized-man-pages-understood-and-customized\">\n<p>So when we want something underlined (for example), the <code>us<\/code> and <code>ue<\/code> entries in our terminal&rsquo;s termcap record are what we need to send to the terminal to start and end underlining that section of text.<\/p>\n<p>And <code>less<\/code>, it seems, provides this handy way to <em>override<\/em> those entries using environment variables. We can make <code>us<\/code> and <code>ue<\/code> and any other termcap string do whatever we want!<\/p>\n<p>[&#8230;]<\/p>\n<p>The <code>\\e[<\/code> essentially tells the terminal to start listening for a command that will change its behavior. <code>m<\/code> is actually the command here; all the inputs to the command come before it. The <code>m<\/code> command tells the terminal to change how it renders subsequent text until further notice.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Peter Hosey: So when we want something underlined (for example), the us and ue entries in our terminal&rsquo;s termcap record are what we need to send to the terminal to start and end underlining that section of text. And less, it seems, provides this handy way to override those entries using environment variables. We can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[750,318,163],"class_list":["post-15564","post","type-post","status-publish","format-standard","hentry","category-technology","tag-man-pages","tag-terminal","tag-unix"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/15564","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=15564"}],"version-history":[{"count":1,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/15564\/revisions"}],"predecessor-version":[{"id":15565,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/15564\/revisions\/15565"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=15564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=15564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=15564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}