Re: How do I stop the DOS window from closing
- Posted by euphoric (admin) Jul 15, 2009
- 995 views
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.
wait_key() is found in std/console.e, so be sure to include it.