elgarfo / mintty

Automatically exported from code.google.com/p/mintty
GNU General Public License v3.0
0 stars 0 forks source link

Error messages and help output don't work in console #163

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When mintty is invoked from a console rather than a pty-based terminal, its 
help output and error messages do not appear.

This is because mintty is a GUI subsystem program, which means that it 
doesn't automatically attach to the console it's invoked from. Consequently, 
stdout and stderr don't work in that situation.

Original issue reported on code.google.com by andy.koppe on 17 Feb 2010 at 7:57

GoogleCodeExporter commented 9 years ago
Fixed in r764, by throwing up a message box when writing to stdout or stderr 
doesn't 
work.

Attaching to the console of the parent process didn't work, at least when 
mintty was 
invoked from a bash in a console. That might be because the parent Windows 
process is 
created by fork() but terminated after exec(), leaving mintty orphaned. Using a 
message 
box instead is also useful when mintty is invoked from a shortcut.

Original comment by andy.koppe on 21 Feb 2010 at 5:36