mc and TOSTOP terminal attribute

2009-09-24 Thread Aliaksey Kandratsenka
Hi.

mc sets TOSTOP flag on slave terminal (subshell.c:220). And I cannot
understand why. The comment for that says obvious thing. I've tracked
this code down to initial SCM check-in. So commit message too cannot
explain reason for this.

This flag causes issues with at least gdb debugging of multithreaded
programs and check unit tests that do any output.

Maybe we just kill this piece of code ? Is anybody aware of it's
purpose ? It seems that everything works after I do 'stty -tostop'.

-- 
Aliaksey Kandratsenka alkondrate...@gmail.com

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: mc and TOSTOP terminal attribute

2009-09-24 Thread Slava Zanko
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Aliaksey Kandratsenka wrote:

 mc sets TOSTOP flag on slave terminal (subshell.c:220). And I cannot
 understand why. The comment for that says obvious thing. I've tracked
 this code down to initial SCM check-in. So commit message too cannot
 explain reason for this.

my discovery of repo ends on eb6b3842abd84db5e9a7695d59fb6db5c5321f4f
commit.

 This flag causes issues with at least gdb debugging of multithreaded
 programs and check unit tests that do any output.
 
 Maybe we just kill this piece of code ? Is anybody aware of it's
 purpose ? It seems that everything works after I do 'stty -tostop'.

I think, the terminal tostop flag is set for prevent background
processes from garbling up the interface.

WBR, Slavaz.

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (GNU/Linux)

iD8DBQFKuz02b3oGR6aVLpoRAm6+AJ4oyqi6ZsqBOVFo01/R48nh5BZP+wCdHS6m
jG/xaNZRrLKzD0gQp2fTO+8=
=4NoV
-END PGP SIGNATURE-
___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel


Re: mc and TOSTOP terminal attribute

2009-09-24 Thread Aliaksey Kandratsenka
У Чцв, 24/09/2009 у 12:34 +0300, Slava Zanko піша:
 my discovery of repo ends on eb6b3842abd84db5e9a7695d59fb6db5c5321f4f
 commit.
Mine too. And that's initial Miguel's commit.

 I think, the terminal tostop flag is set for prevent background
 processes from garbling up the interface.
Foreground process can do that too if user presses Ctrl-O when something
is running in foreground. Let's just stop doing this 'tostop' thing.
This way mc's slave terminal will be more compatible with existing and
widely used software.

In the long term mc should probably steal code from GNU screen or from
similar program so that slave terminal has 'real' screen state that's
updated independently from mc interface.

-- 
Aliaksey Kandratsenka alkondrate...@gmail.com

___
Mc-devel mailing list
http://mail.gnome.org/mailman/listinfo/mc-devel