1. changing size of default console window
- Posted by eddo May 29, 2013
- 1329 views
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?
2. Re: changing size of default console window
- Posted by andi49 May 29, 2013
- 1268 views
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
3. Re: changing size of default console window
- Posted by useless_ May 29, 2013
- 1202 views
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
4. Re: changing size of default console window
- Posted by jimcbrown (admin) May 30, 2013
- 1172 views
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.