1. How do I stop the DOS window from closing
- Posted by pat_block Jul 15, 2009
- 993 views
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
2. Re: How do I stop the DOS window from closing
- Posted by bernie Jul 15, 2009
- 984 views
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
3. Re: How do I stop the DOS window from closing
- Posted by pat_block Jul 15, 2009
- 974 views
That's great, just what I was after. Thank you very much.
4. Re: How do I stop the DOS window from closing
- Posted by euphoric (admin) Jul 15, 2009
- 992 views
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.
wait_key() is found in std/console.e, so be sure to include it.
5. Re: How do I stop the DOS window from closing
- Posted by pat_block Jul 15, 2009
- 954 views
[/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.
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.
6. Re: How do I stop the DOS window from closing
- Posted by euphoric (admin) Jul 15, 2009
- 938 views
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.