| Re: Output under win32forth turnkey |
|
 |
|
 |
|
 |
|
 |
Group: comp.lang.forth · Group Profile
Author: George HubertGeorge Hubert Date: Aug 10, 2006 08:11
George Hubert wrote:
> Mark Carter wrote:
>> J Thomas wrote:
>>> Mark Carter wrote:
>>>> I reated a small application in win32forth:
>>>
>>>> : go s" hello world" type cr bye ;
>>>
>>>> ' go turnkey hello
>>>
>>>> When I go to the console and type
>>>> hello.exe
>>>
>>>> I don't see any output. What gives?
>>>
>>> I'm no expert in Win32forth, but before the experts arrive I want to
>>> suggest
>>>
>>> : go s" hello world" type cr key drop bye ;
>>
>> That doesn't work, either.
>>
>> I type the hello.exe command from the console, rather than
>> double-clicking on it. I wondered if it had something to do with the
>> neeed to flush stdout, or something. But interestingly, the cosole
>> window becomes deselected when I run hello.exe, suggesting that it's
>> creating some kind of invisible window that then gets destroyed, or
>> something.
>
> By default the W32F console window is hidden (by the word HIDE-COSOLE
> in _DEFAULT-HELLO defined in IMAGEMAN.F) since most apps are GUI ones.
> It therefore needs to be made visible using SHOW-CONSOLE, so try;
> : go s" hello world" type cr key drop bye ;
> you still need the key drop otherwise you'll miss the message if you
> blink (that's assuming you use a 486 or you're a very quick blinker -;)
>
> George Hubert
Oops I meant
: go show-console s" hello world" type cr key drop bye ;
(the same as Rod's)
George Hubert
|