Re: How do I stop the DOS window from closing

new topic     » goto parent     » topic index » view thread      » older message » newer message
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 thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu