Sunday, May 18, 2008

256-color urxvt on cygwin

ok, now i'm working in different company, under different os (guess it's name), and i want all my stuff back. here's how it's done..

1. run cygwin's setup.exe, install wget, make, gcc, g++, autoconf, x11, gtk2, expat, and respective devel packages.
dependencies are handled automatically.
cygwin's version of urxvt isn't patched to support 256 colors, so do not install it

2. run bash, and download rxvt-unicode
unpack it, and apply the same patch as in previous post using following commands:
cd rxvt-unicode-9.02
patch -p1 <doc/urxvt-8.2-256color.patch

3. run autoconf, and then this one:
./configure --prefix=/usr --enable-xterm-colors=256 --with-x --enable-pointer-blank --enable-text-blink --enable-smart-resize --enable-mousewheel --enable-xft --enable-perl --disable-wtmp --disable-utmp --with-term=rxvt-256color

4. run "make"
move INSTALL to some other name (otherwise make will think that 'install' file is here, and won't install anything)
run "make install"

5. edit /etc/DIR_COLORS, add line "TERM rxvt-256color"
(not sure if it's really required)

you're done. now you have your 256 colors
enjoy

0 comments: