
Rxvt solves many Cygwin woes
February 12, 2007I don’t know why Cygwin doesn’t default to using rxvt as it’s default terminal, but man….. it really should!
One of the things I’ve hated most about having to switch from a Mac Powerbook to a Window XP box (Dell) at work is that the Unix shell environment in OSX is *very* nice, and very well integrated into the rest of the OS. I know some Mac fans like to disrespect the OSX terminal, but I always rather like it. I loved having transparency, I loved the infinite scrollback buffer… and if you set you’re display variable correctly it integrated great with the port of Xwindows that’s on the Developer CD.
Cygwin helps, but the default configuration for the cygwin shell icon runs bash under cmd.exe, and it sucks. I’ve had weird problems, mostly in SSH sessions to Linux boxes, but that could be because that’s where I spend a lot of time.
Among the oddities I’ve encountered: Resizing the window seems to wreak havoc on subsequent screen updates, weird problems with colors in remove VI sessions (sometimes giving me nice black on black text! ), etc. But the absolute worst has been that hitting Ctrl-C in an SSH session kills the SSH session instead of sending the Ctrl-C to the remote application! Man that’s been a pain in my *ss!
But now, I’ve found Cygwin nirvana. Little old rxvt is listed in the Cygwin install under shells, and it’s well worth adding. It’s solved all of the above problems! After you install rxvt, you need to edit your cygwin.bat to run Rxvt instead of the default of running bash under cmd.exe. Mine now looks like this:
@echo off
C:
cd C:cygwinbin
REM bash --login -i
rxvt -sr -sl 2500 -sb -geometry 90x30 -fg lightblue -bg midnightblue -tn rxvt -fn "Lucida Console-14" -e /usr/bin/bash --login -i
[...] the current directory and ignores case– and dumps the results into FileName.txt. Thanks to a Blasphemous Bit from Bob McCormick, I’ve been using Rxvt lately, so I have a much better terminal than that crusty old MS-DOG [...]
Thank you kindly for this post!
When I switch to Rxvt, then VIM doesn’t switch buffers on Ctrl-^. I’m assuming this is a problem with my .inputrc settings or something. But I’ve never messed with this before. Do you use Vim?
I agree, rxvt makes Cygwin so much more usable, but it still has (silly) some issues.
For example I am unable to type æøå (unicode/ISO-8559-1) in the terminal window. This works fine when i run bash via cmd, but not in rxvt. I survive, since I do most my “shelling” in English, but it’s annoying sometimes when you’re editing a unicode or ISO-8859-1 file on a remote server via SSH.
Thanks for the the post. It saved me some time setting up the rxvt.bat file again on my new system (I always forget to transfer it when I reinstall…)
[...] • http://en.poderosa.org/ • http://blasphemousbits.wordpress.com/2007/02/12/rxvt-solves-many-cygwin-woes/ * [...]
[...] you know, cygwin default console is real bad. After a while, you figure out that, you can rather set rxvt as your cygwin console rather than the fixed width windows command prompt. But, when you get things just as how they [...]
@Alex:
“When I switch to Rxvt, then VIM doesn’t switch buffers on Ctrl-^.”
Try Ctrl-Shift-^