Okay,
  I've just downloaded the source for mc version 4.6.1.

The problem is in the SLang_init_tty() function, basically it forces the
application (mc) to decide if XON/XOFF flow control should be on.
The application has no way of knowing this.

(NB I said RTS/CTS in my last mail that should have been XON/XOFF)

The problem line is:

   if (no_flow_control) newtty.c_iflag &= ~IXON; else newtty.c_iflag |= IXON;

There needs to be a way of telling the init routine that you want to
leave the IXON setting the way that the user set it in her .profile,
perhaps the line could be put inside a:

  if (no_flow_control>=0) {
     ...
  }

or perhaps it'd be best to have the line as:

   if (no_flow_control) newtty.c_iflag &= ~IXON;

That way the second argument to SLang_init_tty() could be zero for normal
use and only set to one for programs that do silly things like using ^S
for search.

I suppose this now means that the bug is shared between mc and slang :-)

--
Rob.                          (Robert de Bath <robert$ @ debath.co.uk>)
                                             <http://www.debath.co.uk/>

On Fri, 27 Jan 2006, Ludovic Drolez wrote:



Robert de Bath wrote:
On Fri, 27 Jan 2006, Ludovic Drolez wrote:

Hi,

Since mc works with screen, it's the proof that's not a 'mc' problem
but a

Wrong, it's mc that clears the "stty crtscts" flag. It has no business
doing that. Screen OTOH knows that it shouldn't clear the flag even if
the program in it's faked terminal does so.

Could you try the UTF-8 mc is uploaded to experimental ? It's based on
libslang2, so the bug could be fixed in that library...

TIA,

--
Ludovic Drolez.

http://www.palmopensource.com       - The PalmOS Open Source Portal
http://www.drolez.com      - Personal site - Linux and PalmOS stuff




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to