Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

WINDOW /SIZE=25,80

Aug
1,914
68
Code:
     _x64: 1
   _admin: 1
_elevated: 1

TCC  28.02.18 x64   Windows 10 [Version 10.0.19043.1466]

In a detached TCC Window, I get an error when attempting to set the WINDOW size.

Code:
e:\utils>echo %_tctabs
0

e:\utils>WINDOW /SIZE=25,80
TCC: (Sys) The parameter is incorrect.

e:\utils>echo %_rows %_columns
24 118
According to the help for WINDOW /SIZE;
WINDOW command - Change window position, size, or title
Specify the TCC screen buffer size. Due to the design of Windows console sessions, you cannot use /SIZE to reduce the size of the screen buffer; it can only be increased. Does not affect window size.
Thus, it would appear that I cannot use WINDOW /SIZE to change the screen to 25 rows by 80 columns.
Is that what is meant by "The parameter is incorrect"?

Note that if I do;
Code:
mode 80,25
...it works to change the screen to 25 rows by 80 columns
Code:
e:\utils>echo %_rows %_columns
25 80

Is there a TCC method that will do the same as mode 80,25?

Joe
 
I hit that bug/documentation-fault: you need to use /SIZE="80,25" so that the comma doesn't split the argument when the command line in parsed.
 
Thanks @jpavel

It appears that I have to add MIN MAX or RESTORE to the command.

Using the command;
Code:
e:\utils>window max /size="25,80" && echo %_rows %_columns
29 112
...does not give me 25 x 80.

Using the command;
Code:
e:\utils>window restore /size="25,80" && echo %_rows %_columns
25 74
...does not give me 25 x 80.

Code:
mode 80,25 && echo %_rows %_columns
...does give me 25 x 80

Joe
 
WINDOW /SIZE sets the size of the console screen buffer and (quoting the help) "does not affect window size". And it has pretty severe limitations. I don't think there's a built-in way to do what you want.
 

Similar threads

Back
Top