1. changing size of default console window

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?

new topic     » topic index » view message » categorize

2. Re: changing size of default console window

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 message » categorize

3. Re: changing size of default console window

andi49 said...

system_exec("mode con cols=40 lines=36")

Nice one, but when i tried that when starting a eui.exe, which used trace, and ed reset the window to the stock 80x25(?).

useless

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

4. Re: changing size of default console window

eukat said...
andi49 said...

system_exec("mode con cols=40 lines=36")

Nice one, but when i tried that when starting a eui.exe, which used trace, and ed reset the window to the stock 80x25(?).

ed.ex resets the row count back to the way it was when ed.ex started up.

It seems we have may have an issue with text_rows() (as it updates the column count to the initial value from when the console is first opened as it updates the # of rows as well), but it seems that the intent in ed.ex's case is to resize both the column count and row count back.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu