1. How do I stop the DOS window from closing

Hi all,

I've messed around with a few other languages over the years, purely for fun, and was quite excited when I started reading about euphoria. But I'm finding it frustrating getting started because every time I run a simple program (e.g. HELLO WORLD) via double clicking it, I never actually get to see the result, because as soon as it finishes, it's gone! Now, I know I could use a DOS box, but it's so clumsy navigating to where the program is every time I want to check a small change. There must be a way to keep the DOS window open until I want it to close.

Any help would be greatly appreciated.

Thanks

new topic     » topic index » view message » categorize

2. Re: How do I stop the DOS window from closing

pat_block said...

Hi all,

I've messed around with a few other languages over the years, purely for fun, and was quite excited when I started reading about euphoria. But I'm finding it frustrating getting started because every time I run a simple program (e.g. HELLO WORLD) via double clicking it, I never actually get to see the result, because as soon as it finishes, it's gone! Now, I know I could use a DOS box, but it's so clumsy navigating to where the program is every time I want to check a small change. There must be a way to keep the DOS window open until I want it to close.

Any help would be greatly appreciated.

Thanks

Place this at end of program.

-- This will keep dos window open until you hit a key. 
if getc(0) then end if 
new topic     » goto parent     » topic index » view message » categorize

3. Re: How do I stop the DOS window from closing

That's great, just what I was after. Thank you very much.

new topic     » goto parent     » topic index » view message » categorize

4. Re: How do I stop the DOS window from closing

bernie said...
pat_block said...

There must be a way to keep the DOS window open until I want it to close. Thanks

Place this at end of program.

-- This will keep dos window open until you hit a key. 
if getc(0) then end if 

If you're using v4.0, you can just use

wait_key() 

wait_key() is a function, but in 4.0 you can ignore function return values by not assigning them to a variable. smile

wait_key() is found in std/console.e, so be sure to include it.

new topic     » goto parent     » topic index » view message » categorize

5. Re: How do I stop the DOS window from closing

[/quote]

If you're using v4.0, you can just use

wait_key() 

wait_key() is a function, but in 4.0 you can ignore function return values by not assigning them to a variable. smile

wait_key() is found in std/console.e, so be sure to include it.

[/quote]

OK. Thanks again.

I'm now making fair headway through C. K. Lester's tutorial, and am enjoying it. But don't expect a new web browser from me until at least next Tuesday. smile

new topic     » goto parent     » topic index » view message » categorize

6. Re: How do I stop the DOS window from closing

pat_block said...

I'm now making fair headway through C. K. Lester's tutorial, and am enjoying it.

Make sure to send him any suggestions for enhancements, clarifications, code examples, etc. smile

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu