You may need to set up a code page.
Check current:
$ set | grep CYGWIN CYGWIN='codepage:oem nodosfilewarning'
If you do not have a code page, add ~ / .bashrc to the file:
CYGWIN='codepage:oem nodosfilewarning'
The contents of my Cygwin file (Cygwin.bat) launched by the shortcut is as follows:
start C:\cygwin\bin\rxvt.exe -sb -sl 3000 -fg gray -bg black -fn "Lucida Console-14" -e /bin/bash
Note that for the CYGWIN environment variable, you can have several elements, each of which is separated by a space. Other elements that can be used: {tty binmode title}.
More information can be found here: http://www.cygwin.com/cygwin-ug-net/setup-env.html
Related Note: You can also use mrxvt for Cygwin. This requires an X server, and a good solid / easy solution is to use Xming. I compiled mrxvt and installed it - it is not very difficult to do, and it works fine.
I use rxvt as the initial window, then run mrxvt as a separate process from rxvt using the alias command, and then close rxvt. This makes mrxvt its own parent process and does not have cmd sessions connected.
I made an alias to do this:
alias mrx='export DISPLAY="127.0.0.1:0.0"; $(/usr/local/bin/mrxvt &); echo -e "\033c"'
For convenience, I created a batch file to run Xming and rxvt:
@echo off start C:\cygwin\bin\rxvt.exe -sb -sl 3000 -fg gray -bg black -fn "Lucida Console-14" -e /bin/bash --login -i start C:\Xming\Xming.exe :0 -clipboard -multiwindow -trayicon exit
This batch file is launched using the Windows shortcut. This worked well for me.
Matt May 28 '10 at 8:48 a.m. 2010-05-28 08:48
source share