{"id":320,"date":"2008-06-27T02:14:12","date_gmt":"2008-06-26T23:14:12","guid":{"rendered":"http:\/\/www.void.gr\/kargig\/blog\/?p=320"},"modified":"2009-05-03T13:12:28","modified_gmt":"2009-05-03T10:12:28","slug":"rxvt-unicode-256-color-support-with-vim","status":"publish","type":"post","link":"https:\/\/www.void.gr\/kargig\/blog\/2008\/06\/27\/rxvt-unicode-256-color-support-with-vim\/","title":{"rendered":"rxvt-unicode 256 color support with vim"},"content":{"rendered":"<p>Following my previous post on <a href=\"http:\/\/www.void.gr\/kargig\/blog\/2008\/06\/22\/the-quest-for-a-better-rxvt-unicode-on-gentoo\/\">minimizing the resources that urxvt needs on Gentoo<\/a>, I tried applying some more patches to it that I found in Gentoo&#8217;s bugzilla.<br \/>\nSince that happened a few days ago there was no ebuild for version 9.05 yet. So I created one and applied the patch for the <a href=\"http:\/\/bugs.gentoo.org\/show_bug.cgi?id=224787\">256 color support<\/a>.<\/p>\n<p>Here&#8217;s my rxvt-unicode ebuild for version 9.05 with 256 color support: <a href=\"http:\/\/void.gr\/kargig\/ebuilds\/rxvt-unicode-9.05.ebuild\">rxvt-unicode-9.05.ebuild<\/a>.<br \/>\n<!--more--><br \/>\nSo since I now have a terminal supporting 256 colors it&#8217;s time to make <a href=\"http:\/\/www.vim.org\/\">vim<\/a> use it.<br \/>\nFollowing this guide for <a href=\"http:\/\/vim.wikia.com\/wiki\/256_colors_in_vim\">256 colors in vim<\/a> I made some tests.<br \/>\nHere are the screenshots:<br \/>\nrxvt-unicode without 256 color support displaying the output of <a href=\"http:\/\/www.cs.rice.edu\/~scrosby\/software\/tf256color\/src\/256colors2.pl\">256colors2.pl<\/a>:<br \/>\n<a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/urxvt-colors-non256.jpg'><img src='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/small_urxvt-colors-non256.jpg' alt='' width=\"191\" height=\"146\"\/><\/a><\/p>\n<p>rxvt-unicode with 256 color support displaying the output of <a href=\"http:\/\/www.cs.rice.edu\/~scrosby\/software\/tf256color\/src\/256colors2.pl\">256colors2.pl<\/a>:<br \/>\n<a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/urxvt-colors-256.jpg'><img src='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/small_urxvt-colors-256.jpg' alt='' width=\"191\" height=\"146\"\/><\/a><\/p>\n<p>rxvt-unicode without 256 color support with t_Co=8 using theme <a href=\"http:\/\/www.vim.org\/scripts\/script.php?script_id=105\">desert<\/a> displaying <a href=\"http:\/\/www.cs.rice.edu\/~scrosby\/software\/tf256color\/src\/256colors2.pl\">256colors2.pl<\/a><br \/>\n<a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/urxvt-desert-non256-t_Co8.jpg'><img src='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/small_urxvt-desert-non256-t_Co8.jpg' alt='' width=\"191\" height=\"146\"\/><\/a><\/p>\n<p>rxvt-unicode without 256 color support with t_Co=256 using theme <a href=\"http:\/\/www.vim.org\/scripts\/script.php?script_id=105\">desert<\/a> displaying <a href=\"http:\/\/www.cs.rice.edu\/~scrosby\/software\/tf256color\/src\/256colors2.pl\">256colors2.pl<\/a><br \/>\n<a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/urxvt-desert-non256-t_Co256.jpg'><img src='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/small_urxvt-desert-non256-t_Co256.jpg' alt='' width=\"191\" height=\"146\"\/><\/a><\/p>\n<p>rxvt-unicode with 256 color support with t_Co=256 using theme <a href=\"http:\/\/www.vim.org\/scripts\/script.php?script_id=105\">desert<\/a> displaying <a href=\"http:\/\/www.cs.rice.edu\/~scrosby\/software\/tf256color\/src\/256colors2.pl\">256colors2.pl<\/a><br \/>\n<a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/urxvt-desert-256.jpg'><img src='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/small_urxvt-desert-256.jpg' alt='' width=\"191\" height=\"146\"\/><\/a><\/p>\n<p>rxvt-unicode without 256 color support with t_Co=8 using theme <a href=\"http:\/\/www.vim.org\/scripts\/script.php?script_id=1243\">desert256<\/a> displaying <a href=\"http:\/\/www.cs.rice.edu\/~scrosby\/software\/tf256color\/src\/256colors2.pl\">256colors2.pl<\/a><br \/>\n<a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/urxvt-desert256-non256-t_Co8.jpg'><img src='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/small_urxvt-desert256-non256-t_Co8.jpg' alt='' width=\"191\" height=\"146\"\/><\/a><\/p>\n<p>rxvt-unicode without 256 color support with t_Co=256 using theme <a href=\"http:\/\/www.vim.org\/scripts\/script.php?script_id=1243\">desert256<\/a> displaying <a href=\"http:\/\/www.cs.rice.edu\/~scrosby\/software\/tf256color\/src\/256colors2.pl\">256colors2.pl<\/a><br \/>\n<a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/urxvt-desert256-non256-t_Co256.jpg'><img src='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/small_urxvt-desert256-non256-t_Co256.jpg' alt='' width=\"191\" height=\"146\"\/><\/a><\/p>\n<p>rxvt-unicode with 256 color support with t_Co=256 using theme <a href=\"http:\/\/www.vim.org\/scripts\/script.php?script_id=1243\">desert256<\/a> displaying <a href=\"http:\/\/www.cs.rice.edu\/~scrosby\/software\/tf256color\/src\/256colors2.pl\">256colors2.pl<\/a><br \/>\n<a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/urxvt-desert256-256.jpg'><img src='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/small_urxvt-desert256-256.jpg' alt='' width=\"191\" height=\"146\"\/><\/a><\/p>\n<p>rxvt-unicode without 256 color support with t_Co=8 using theme <a href=\"http:\/\/www.vim.org\/scripts\/script.php?script_id=1143\">inkpot<\/a> displaying <a href=\"http:\/\/www.cs.rice.edu\/~scrosby\/software\/tf256color\/src\/256colors2.pl\">256colors2.pl<\/a><br \/>\n<a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/urxvt-inkpot-non256-t_Co8.jpg'><img src='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/small_urxvt-inkpot-non256-t_Co8.jpg' alt='' width=\"191\" height=\"146\"\/><\/a><\/p>\n<p>rxvt-unicode without 256 color support with t_Co=256 using theme <a href=\"http:\/\/www.vim.org\/scripts\/script.php?script_id=1143\">inkpot<\/a> displaying <a href=\"http:\/\/www.cs.rice.edu\/~scrosby\/software\/tf256color\/src\/256colors2.pl\">256colors2.pl<\/a><br \/>\n<a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/urxvt-inkpot-non256-t_Co256.jpg'><img src='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/small_urxvt-inkpot-non256-t-Co256.jpg' alt='' width=\"191\" height=\"146\"\/><\/a><\/p>\n<p>rxvt-unicode with 256 color support with t_Co=256 using theme <a href=\"http:\/\/www.vim.org\/scripts\/script.php?script_id=1143\">inkpot<\/a> displaying <a href=\"http:\/\/www.cs.rice.edu\/~scrosby\/software\/tf256color\/src\/256colors2.pl\">256colors2.pl<\/a><br \/>\n<a href='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/urxvt-desert256-256.jpg'><img src='http:\/\/www.void.gr\/kargig\/blog\/wp-content\/small_urxvt-inkpot-256.jpg' alt='' width=\"191\" height=\"146\"\/><\/a><\/p>\n<p>I am currently using desert256 with urxvt 9.05 with 256 color support of course \ud83d\ude42<br \/>\nSo with this unicode-rxvt ebuild I have a) unicode support b) tabs using fluxbox&#8217;s tab support c) 256 colors. I think that I currently don&#8217;t have any other wishes for a terminal.<br \/>\nMy second terminal of choice, <a href=\"http:\/\/materm.sourceforge.net\">mrxvt<\/a> still lacks unicode support \ud83d\ude41<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following my previous post on minimizing the resources that urxvt needs on Gentoo, I tried applying some more patches to it that I found in Gentoo&#8217;s bugzilla. Since that happened a few days ago there was no ebuild for version 9.05 yet. So I created one and applied the patch for the 256 color support. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ep_exclude_from_search":false,"footnotes":""},"categories":[12,3],"tags":[],"class_list":["post-320","post","type-post","status-publish","format-standard","hentry","category-gentoo","category-linux"],"aioseo_notices":[],"views":45109,"_links":{"self":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/comments?post=320"}],"version-history":[{"count":1,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/320\/revisions"}],"predecessor-version":[{"id":488,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/posts\/320\/revisions\/488"}],"wp:attachment":[{"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/media?parent=320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/categories?post=320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.void.gr\/kargig\/blog\/wp-json\/wp\/v2\/tags?post=320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}