1. Console window size: rows and columns

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.


Terry Constant

new topic     » topic index » view message » categorize

2. Re: Console window size: rows and columns

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

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

3. Re: Console window size: rows and columns

Terry Constant 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.

I'm not sure if that's a Windows bug, or my bug.
I've noticed it before. In any case I don't think I 
can fix it easily, but I'll make a note of it.

Regards,
   Rob Craig
   Rapid Deployment Software
   http://www.RapidEuphoria.com

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

4. Re: Console window size: rows and columns

Robert wrote:
"I'm not sure if that's a Windows bug, or my bug.
I've noticed it before. In any case I don't think I 
can fix it easily, but I'll make a note of it."

Since you are going to look into it, most of the standard output
routines, such as, puts(), seem to only go to 80 columns. If I do
puts(1, repeat("-", 100)) the line is wrapped or truncated at column
80. So there is more involved here than just getting the rows and columns.
It seems that that information (rows and columns) is used by Euphoria's
routines. Not a giant issue in general. However, I am very interested in
good, useful, and powerful console I/O. 

Again, I am not pushing. But if you do look at the issue, why not look at
all aspects.

Thanks for your response

Terry Constant

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

5. Re: Console window size: rows and columns

Robert Craig,

In reference to the 25/80 issue for Euphoria's standard output routines.
The problem is most exacerbating when text is scrolling at the last line 
of my visible console AND is at the last line of my console screen buffer.

When in the condition just mentioned(last and last) all of Euphoria's
output routines only scroll 80 columns, which completely messes up
the display on a screen of more than 100 columns. The scrolling is 
okay until the last line of the buffer is also reached.

Of all the problems (in reference to the 25/80 issue) 
that I have encountered so far, this one is the most annoying.

This message is just to provide you with more information.

Terry Constant

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

Search



Quick Links

User menu

Not signed in.

Misc Menu