Re: changing size of default console window

new topic     » goto parent     » topic index » view thread      » older message » newer message
eddo said...

I'd like my program to automatically change the console window to have 28 rows (instead of default 25). How do I do that by code (I can do it manually, but don't want to.) Also, I've been playing with Euphoria for about 2 years now, and my current program takes a LOTTA time to start up and exit (like 6 seconds!). I have NEVER seen anything like this in years of experience - I assume it's deallocating memory or something. My program has sequences in it, but it's not gigantic. I've run very big programs before and this has never been an issue - they respond immediately. Can I do anything to speed up this delay?

Hallo
If you are working on windows, the below example may help you.

include std/console.e 
puts(1,"a")   -- make sure the console window is open 
system_exec("mode con cols=40 lines=36") 
for i=1   to 35 do 
	puts(1,"test"&sprintf("%d",i)&"\n") 
end for 
wait_key() 
 

For myself, startuptime is not very important. If i like to have a fast startup, i translate my programs (what i mostly do) or bind them.
Andreas

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu