Screens of different size and hidden console

I have 2 screens of different sizes (1280×1024, 1680×1050).
When I create a tab in TCMD, there is a hidden console created, which goes to the screen TCMD is currently displayed on. When I resize TCMD, the hidden console is resized accordingly (matching the number of rows and columns). When I move TCMD to the other screen, the hidden console remains on its original screen.
When I move TCMD from the smaller screen to the larger one and set it enlarged, and the hidden console is on the smaller screen, this hidden console may be limited in size by its screen, and TCMD will also display using a limited width.
Not sure something can be done. And the issue is not very important.
TCC 17.00.21 x64 Windows 7 [Version 6.1.7601]
TCC 16.03.54 x64 Windows 7 [Version 6.1.7601]
 

rconn

Administrator
Staff member
May 14, 2008
12,364
150
I don't think there's anything that an be done about it -- to move the hidden console window to another monitor, I would need the window handle. And that's not available; it's owned by (and hidden inside) the Windows console host.

However, you can always get a bigger max rows & columns by decreasing your default console font size. This won't affect the font & size used in TCMD tab windows.
 
May 20, 2008
11,415
99
Syracuse, NY, USA
I don't think there's anything that an be done about it -- to move the hidden console window to another monitor, I would need the window handle. And that's not available; it's owned by (and hidden inside) the Windows console host.

However, you can always get a bigger max rows & columns by decreasing your default console font size. This won't affect the font & size used in TCMD tab windows.
Didn't TCMD (at least once upon a time) set the font in the hidden consoles to something pretty small? I get 6 x 12 Consolas in the hidden consoles; that's not by my own choice nor the default.
 
Yes, it does. I get the same 6×12 Consolas font size. It also sets it bold, which is not by my own choice either.
If I choose still a smaller font size (while the console is detached), it can take more rows and columns, and thus handle large dimensions for TCMD on the large screen.
It seems that if detach the hidden console, move it to another screen with the mouse, and attach it again, it jumps back to its original screen.
Maybe there could be an option to specify on which screen/display the hidden console is to be created.
 

rconn

Administrator
Staff member
May 14, 2008
12,364
150
First, there isn't any "6x12 Consolas" - Consolas is a TT font, not a raster font. So it only has a point size.

Second, TCMD will resize the console font size downwards if you resize the window to something larger than what the underlying console buffer can handle. But that is relative to the monitor where the hidden console window resides -- and as I said, that cannot be moved to the other monitor (unless Microsoft exposes an API to do that). Note that simply moving the TCMD window to another monitor is not a resize, so it will not adjust the console font.
 
May 20, 2008
11,415
99
Syracuse, NY, USA
First, there isn't any "6x12 Consolas" - Consolas is a TT font, not a raster font. So it only has a point size.
The "6 x 12" comes directly from CONSOLE_FONT_INFOEX's dwFontSize. Aren't all fonts in the console mono-spaced ... have a fixed width?
 
May 20, 2008
11,415
99
Syracuse, NY, USA
The "6x12" return value is only relevant for your particular video card and your particular monitor (and you cannot set Consolas to 6x12).
Agreed. Nevertheless, it is the size of the font (x and y) that is of interest to me, especially in a console. I find the "point" description of a font somewhat useless. The same specification, e.g., "Consolas 11", can look different in different places. In a console it means 11 pixels high (good). In TCMD it means ...
 
This "6×12 Consolas" is a string I have seen displayed in some GUI. I believe it was TCMD in some former version, but I'm not absolutely sure; it doesn't display it in the current version, and I didn't try to install older versions just to check this. And yes: when I choose the size, it is in a dialog with point size.

I noticed that you managed to handle quite well the issue about the different sizes. Either by reducing more the font size (but I don't know exactly: at one point, I reduced the font size on a detached console, Windows will have remembered something in the registry), or by moving the console to the screen where TCMD is displayed (seems to happen at least when you re-attach the console).
 
Similar threads
Thread starter Title Forum Replies Date
Jay Sage Parameter %$ Different in Aliases and BTMa Support 4
R @select inside alias gives different (insanely small) window Support 7
T Date format date different from cmd Support 7
Jesse Heines webform output different in ver. 26 than ver. 25 Support 2
Joe Caverly DrawVLine results different in TCMD tab and detached TCC Support 11
W If command - different with CMD Support 6
vefatica Are @FILEDATE[file] and @FILEDATE[file,u] ever different? Support 2
D Pasting Unicode data has different behavior on TCC and CMD Support 2
J How to? Start TCMD with different configurations Support 3
Glenn Bowes WAD TOOLBAR Button Definations are different v19 to v20 Support 8
M How to? Compare file timestamps accross different file systems... Support 1
deleyd Fixed Behavior different than CMD Support 1
Stefano Piccardi TCC 13 vs. TCC 14 different FFIND /E"d$" output Support 1
beerns different results between tcmd and cmd Support 2
davidebbo Installing to a different machine Support 27
daniel347x Different results with TCC than with cmd.exe Support 2
B Need To Deactivate V12.1 Before Reinstall To Different Directory? Support 3
A Redirecting TCC output to a different RDP Session Support 6
B %ProgramFiles(x86)% returns different values in TCC and CMD Support 3
S MOVE to different drive Support 3
C sharing global histories between different TCMD versions? Support 5
dcantor LIST /X and TYPE /X give different results Support 20
T Different 9.02 TakeCmd.dll inikey files in the oldver directory Support 1
M Tab button to launch as different user Support 1
wbiebel Different versions? Support 1
Timothy Byrd COMSPEC incompatibility - v9 is different than v7 Support 8
R History window wrong size, can't remember size change Support 12
fpefpe How to? batch file size Support 2
vefatica Documentation Documentation of popup location and size Support 4
S Increasing Font Point Size in Command Tabs Support 2
S How to? What's the maximum size of the thread text ? Support 5
ntak About window size notification Support 6
Joe Caverly Windows Size is 80x0 Support 2
D Need to set Take Command font size when switching to high DPI display Support 0
rps @FILESIZE[....,a] allocated size not matching Dir results Support 8
D Range command dialog with blank maximum size erases everything Support 5
R How to? Change TCMD tab font size in window menu Support 3
D Get tab position and size Support 6
Alpengreis The TCMD Display problems and font size ... Support 2
Joe Caverly How to? Determine size of file via download link Support 13
C VIEW PRINT - Documentation corrected - Font size Support 8
L alternate streams size not counted Support 7
mikea How to? @select[] window size, redux. Support 3
Joe Caverly Window Size (Columns x Rows) Support 2
N Popup Window size too small Support 5
Mordachai how to control window size? Support 10
Joe Caverly New Tab In TCMD Changes TCC Window Size Support 1
R WAD /= size ranges not set correctly Support 5
fpefpe How to? Fonts / Size in console window Support 5
C TCC scrollback buffer size Support 11

Similar threads