C-o in GNU MC and mintty/rxvt issue?

Oleksandr Gavenko gavenko@bifit.com.ua
Wed May 12 16:18:00 GMT 2010


On 2010.05.12 16:11, Oleksandr Gavenko wrote:
> Recently I decide switch from Far/Total Commander to GNU MC.
>
> I use Cygwin 1.7.1.
>
> MC is look beauty with mintty but I have issue:
>
> 1. when press C-o to see ls output, it have irregular structure,
> not indented by column, like column width set to infinity:
>
> {{{
> Application Data PrintHood
> Bluetooth Software PrivacIE
> Cookies Recent
> gsview32.ini SendTo
> IETldCache UserData
> Local Settings WINDOWS
> NetHood Главное меню
> NTUSER.DAT Избранное
> ntuser.dat.LOG Мои документы
> ntuser.ini Рабочий стол
> ntuser.ini.sum Шаблоны
> $ ls
> }}}
>
> 2. command output printed before command itself:
>
> {{{
> xxx xterm xxx
> $ echo xxx $TERM xxx
> }}}
>
> 3. Second shell not available.
> On Debian I get prompt after pressing C-o, with Cygwin MC pressing
> any key back me to MC screen.
>
>
I partially resolve all problem.
It seems by default Cygwin MC do not use subshell.
I run mc --subshell and all symptom goes out!

I dislike many typing and sadly mc is not support
any analog of '--subshell' in ~/.mc/ini.

So I create scripts:

mymc.bat   for Windows and Win+R {{{

@echo off

REM I probably on Windows with Russian language.
set LANG=ru_RU.cp1251

start mintty --size=140,50 -e mc --subshell
REM start rxvt -fn 8x16 -fb 8x16 -geometry 140x50 -e mc -a
}}}


mymc   for bash under Windows and for Linux {{{

#!/bin/sh

if [ "$OSTYPE" = cygwin ]; then
   mintty --size=140,50 -e mc --subshell &
else
   xterm -fn 8x16 -fb 8x16 -geometry 140x50 -e mc -a &
fi
}}}


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list