I 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-^
This is awesome! Thanks!
You should try PuTTYcyg! It’s pretty awesome. The advantage of PuTTYcyg is that it’s a windows-native putty program with a built-in cygwin interface. Freaking awesome. So you get all the control of PuTTY and none of the issues of running non-native host applications.
Check it out!
http://code.google.com/p/puttycyg/
[...] to Bob McCormick for some of this info. Posted in Windows | Comments [...]
mintty
RXVT when not used in an X-Window environment (which is often the case under Cygwin) does not support Unicode (still true in 2010!!!). That’s why the unicode characted doesn’t work there. The standard, stupid, ugly CMD console used by default DO support unicode. Maybe this is why they still use it. It is really a shame.
Rxvt is no longer developed. Its successor is rxvt-unicode, but that requires an X server to run on Cygwin. Have a look at mintty instead, which offers xterm-compatible terminal emulation with Unicode support and a native Windows UI. Available through Cygwin’s setup.exe or from http://mintty.googlecode.com.
mintty FTW!!
For help on rxvt setup go to http://infrablue.tripod.com/cygwin.html but after reading comments above I’m off to take a look at mintty!
Mike said it all: mintty.
It has everything.
It’s nice to finally be able to read my man pages properly. UTF-8 works.
Just create a shortcut with a target like D:\cygwin\bin\mintty.exe and you’re on.
Configure using the GUI options by right clicking the window icon.
You can also CTRL click filenames and URLs and they just open!
man mintty tells it all.
Cool.