RE: Console window size: rows and columns

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

Terry Constant wrote:
> 
> 
> posted by: Terry Constant <EUforum at terryconstant.com>
> 
> Terry wrote:
> "I am using WinXp. When I use the video_config() function, the number 
> of rows/columns reported is 25/80. However, the console in which 
> I am in is 100/80. Is there a way to get the correct number 
> of rows/columns for the actual console in which a Euphoria program
> is running. BTW, I am using exwc.exe."
> 
> 100/80 should be 80/100 rows/columns. Further, output sometimes 
> gets confused and treats my 100 column console as if it only had
> 80 columns. This second issue is not important (at least not now). 
> I just added it as a bit more information. I am mainly interested
> in being able to get the correct number of rows and columns
> for a console text screen.
> 
> 
> Terry Constant

You should be able to get that info using GetConsoleScreenBufferInfo in 
kernel32.  If you'd like help with it let me know.  If so, I'd like to 
know if you are using any windows helper libraries before I go through 
the trouble of coding in pure Euphoria.

-- Brian

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

Search



Quick Links

User menu

Not signed in.

Misc Menu