delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/11/21/22:31:12

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: Tcl bug
21 Nov 1998 22:31:12 -0800 :
Message-ID: <199811220421.WAA15981.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <19981121203020 DOT 21702 DOT rocketmail AT send104 DOT yahoomail DOT com>
To: earnie_boyd AT yahoo DOT com
Cc: Albert Koelmans <Albert DOT Koelmans AT newcastle DOT ac DOT uk>,
GNU win32 mailing list <gnu-win32 AT cygnus DOT com>

Earnie Boyd <earnie_boyd AT yahoo DOT com> writes:
> ---Mumit Khan <khan AT xraylith DOT wisc DOT edu> wrote:
> 
> I get console output from cygwish80.
> 

Earnie,

You're referring to the Tk console, not OS console which is where the
puts etc goes when run *non-interactively*. Win32 GUI apps don't have
consoles, so it goes nowhere (eg., the printfs in GUI apps don't show 
up anywhere).

I typically redefine puts et al to open up a fake console (text widget)
and sends the output there. I've also created a custom wish on win32 that 
does have console, and you get the expected output.

For portable Tk apps, you simply can't use puts etc and expect it to
work when run non-interactively. It's not a cygwin limitation, but
rather a "feature" of Windows GUI subsystem.

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019