{"id":46,"date":"2005-01-17T17:59:32","date_gmt":"2005-01-17T22:59:32","guid":{"rendered":"http:\/\/lee.org\/blog\/archives\/2005\/01\/17\/cygwin-rxvt\/"},"modified":"2006-05-24T11:48:52","modified_gmt":"2006-05-24T18:48:52","slug":"cygwin-rxvt","status":"publish","type":"post","link":"https:\/\/www.lee.org\/blog\/2005\/01\/17\/cygwin-rxvt\/","title":{"rendered":"Cygwin + Rxvt"},"content":{"rendered":"<p>This works great. Stolen from  <a href=\"http:\/\/www.freemode.net\/archives\/000121.html\">here.<\/a><\/p>\n<blockquote><p>Cygwin + Rxvt<\/p>\n<p>I&#8217;ve been playing around with Cygwin since I&#8217;m forced to run WinXP on my work laptop. Cygwin&#8217;s great, I&#8217;ve used it on and off since when it was GNU-Win32 by Cygnus, but there&#8217;s a lot of improvements to it in the last year or two.<\/p>\n<p>One of the things that&#8217;s irritated me is that the default console uses the cmd.exe shell as a base &#8211; makes it hard to copy + paste with the mouse, among other things.   After some effort, I found the right combination of tweaks to get Rxvt working as a decent console in Cygwin.<\/p>\n<p>[You&#8217;ll of course have to install Rxvt from your favorite Cygwin mirror. &#8211; Lee]<\/p>\n<p>Step 1: Edit ~\/.Xdefaults &#8211; the settings below create an 80&#215;80 terminal window with a deep-blue-black background and yellow-white text (looks nice, easy on the eyes) and assign VIM-style color codes:<\/p>\n<p>(see comment 6. A change might be needed to this code. I haven&#8217;t tested it yet but you might need it. Tell me if it works for you please)<\/p>\n<p><code>! ~\/.Xdefaults - X default resource settings<br \/>\nRxvt*geometry: 80x80<br \/>\nRxvt*background: #000020<br \/>\nRxvt*foreground: #ffffbf<br \/>\n!Rxvt*borderColor: Blue<br \/>\n!Rxvt*scrollColor: Blue<br \/>\n!Rxvt*troughColor: Gray<br \/>\nRxvt*scrollBar: True<br \/>\nRxvt*scrollBar_right: True<br \/>\nRxvt*font: Lucida Console-12<br \/>\nRxvt*SaveLines: 2000<br \/>\nRxvt*loginShell: True<br \/>\n! VIM-like colors<br \/>\nRxvt*color0:    #000000<br \/>\nRxvt*color1:    #FFFFFF<br \/>\nRxvt*color2:    #00A800<br \/>\nRxvt*color3:    #FFFF00<br \/>\nRxvt*color4:    #0000A8<br \/>\nRxvt*color5:    #A800A8<br \/>\nRxvt*color6:    #00A8A8<br \/>\nRxvt*color7:    #D8D8D8<br \/>\nRxvt*color8:    #000000<br \/>\nRxvt*color9:    #FFFFFF<br \/>\nRxvt*color10:   #00A800<br \/>\nRxvt*color11:   #FFFF00<br \/>\nRxvt*color12:   #0000A8<br \/>\nRxvt*color13:   #A800A8<br \/>\nRxvt*color14:   #00A8A8<br \/>\nRxvt*color15:   #D8D8D8<br \/>\n! eof<br \/>\n<\/code><\/p>\n<p>Step 2: Modify your c:cygwincygwin.bat to invoke your shiny new Rxvt instead of cmd.exe:<\/p>\n<p><code>@echo off<br \/>\nC:<br \/>\nchdir C:cygwinbin<br \/>\nset EDITOR=vi<br \/>\nset VISUAL=vi<br \/>\nset CYGWIN=codepage:oem tty binmode title<br \/>\nrxvt -e bash --login -i<\/code><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>This works great. Stolen from here. Cygwin + Rxvt I&#8217;ve been playing around with Cygwin since I&#8217;m forced to run WinXP on my work laptop. Cygwin&#8217;s great, I&#8217;ve used it on and off since when it was GNU-Win32 by Cygnus, but there&#8217;s a lot of improvements to it in the last year or two. One [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,8],"tags":[],"class_list":["post-46","post","type-post","status-publish","format-standard","hentry","category-geekery","category-other-sources"],"_links":{"self":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/46","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/comments?post=46"}],"version-history":[{"count":0,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/posts\/46\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/media?parent=46"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/categories?post=46"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lee.org\/blog\/wp-json\/wp\/v2\/tags?post=46"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}