Welcome!

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

SignUp Now!

TCC - set windows size/position

  • Thread starter Thread starter ron
  • Start date Start date
Aug
175
0
What am I doing wrong? Forgot 34 was not released yet so I did try 33 - same. I'm running a .btm file from a button and want the window to position and size so I can see all the output. The window dimensions or position did not change at all in the 3 tests below. I've never used this before so I'm likely overlooking the obvious. However, given that TCC shows up in a tabbed window, maybe this is a new Win11 thing that breaks WINDOW?

window "test" will change the title though.

TCC 34.00.24 x64 Windows 11 [Version 10.0.26100.3037]

edit - I think I found the reason/answer - WINDOW command

1739082200998.webp
 
However, I found this. I think I like WT, but I need the control that TCC gives me for some things. So.......

1739083916835.webp


So now TCC looks normal - BUT, I can't get 0,0 to work. Only ONCE did 0,0 work and I don't know how it did at that moment.

I can change width and height and that works every time. No matter what value I use for left and top, the window never moves.

1739083968289.webp
 
Fixed it by splitting up the commands - maybe I misread the docs

window /POS=0,0,asterisk,asterisk
window /POS=asterisk,asterisk,2000,1100

Substitute * for asterisk

Although 0,0 is not quite 0,0 - darn close - and close enough, but not true upper left.
 
I tell Windows Terminal not to use a fixed tab title. Then the tab gets whatever title TCC uses. With that setup I can use

Code:
ACTIVATE "%_WINTITLE" ...

to manipulate the Windows Terminal window.

1739112097787.webp
 
Yeah, I get that now. #progress

Regarding my post above where I got WINDOW to work, is the fact that I had to issue the top/left and width/height separately a bug?
 
Yeah, I get that now. #progress

Regarding my post above where I got WINDOW to work, is the fact that I had to issue the top/left and width/height separately a bug?

Not reproducible here if WT isn't in use.

TCC is simply calling the Windows API SetWindowPos with the supplied coordinates. Apparently something on your system is interfering with the call (console host? third-party screen manager?).
 
You can also resize the console or WT with a control sequence. This works in WT preview 1.23 (and I reckon in future releases) and in my Windows 10 console (so I reckon in most modern consoles). The sequence is

Code:
ESC[8;<rows>;<columns>t

There's a related VT sequence, ESC[3;x;yt for positioning, but it's apparently not implemented.
 
Also minimize with ESC[2t and restore with ESC[1t (WT 1.22 release, not in my Win10 console). Do they work in Win11 consoles?
 
Back
Top