DrawVLine results different in TCMD tab and detached TCC

Code:
     _x64: 1
   _admin: 1
_elevated: 1

TCC  25.00.24 x64   Windows 10 [Version 10.0.18362.476]

I have the following code;
Code:
  wsl cal -3
  drawvline 3 20 7 2 bright blue on black
  drawvline 3 42 7 2 bright blue on black

This works fine in a detached TCC;
1576931756837.png


The same code, different result in TCMD tab;
1576931808583.png


The difference is the font.

In TCMD, I am using the Cascadia Code font.
1576932183128.png


...whereas in a detached TCC, I am using the Consolas font.
1576932426546.png


According to Microsoft, the Cascadia Code font does include the characters for line drawing;

1576932493659.png

How do I get TCMD/TCC to use line drawing with the Cascadia Code font? I realize that changing the TCMD font to Consolas corrects the problem, but I would prefer to use the Cascadia Code font.

Joe
 
Last edited:
May 20, 2008
11,380
98
Syracuse, NY, USA
Did you check with CHARMAP? Cascadia Code looks pretty skimpy here (Windows 10 1909). Maybe you must manually install the updated font.

1576943467952.png
 
May 20, 2008
11,380
98
Syracuse, NY, USA
I found CASCADIA.TTF (71K, from September) in a desktop "Archives" (of downloaded things) folder. I must have installed it on this computer. Moments ago I got another one (208K) and installed it ... no change ... CHARMAP still showed a very skimpy character set. Then I went back to

microsoft/cascadia-code

and downloaded/installed CASCADIA MONO PL (PL = power line). Now I have the line drawing symbols (and much more).

1576945076954.png
 
Hey @vefatica
Thanks for that. I have downloaded and installed the Cascadia Mono PL font, however, still not perfect;
1576951783562.png

...but it is better than the little square boxes of the original Cascadia Code font that I was using.

You are also correct in that I must download the current font manually. Thanks again!

Joe
 
Looks like one can use Chocolately to automatically upgrade the Cascadia font.


Posting this mainly for my future reference.

Joe
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
TCC uses the Unicode 0x2500 - 0x256C characters for line drawing. If your font doesn't include those characters (or if they're mapped somewhere else) then DRAWHLINE / DRAWVLINE won't work.

Take Command simply reads the characters in the TCC screen buffer and displays them (in the current font) in the Take Command tab window. It does not do any conversions or remapping.
 
Similar threads
Thread starter Title Forum Replies Date
F strange results Support 9
vefatica @FILESIZE[] ... allocated ... unexpected results Support 0
W pdir returns diff results between tcc and tcmd - one is an error msg Support 5
rps @FILESIZE[....,a] allocated size not matching Dir results Support 8
thorntonpg @eval function, interesting results any explanation? Support 3
Steve Pitts WAD @MD5 returns incorrect results for strings Support 2
J WAD utf8decode string only results in ? chars Support 2
rps How to? dir /s unexpected results Support 10
T Associating BTM files with IDE results in DOS box Support 33
M Why does this code produce these results? Support 2
M Why is this function getting these results in these circumstances? Support 6
JohnQSmith WAD Incorrect results from @FILESIZE Support 9
S Trouble accessing results of forum search Support 2
beerns different results between tcmd and cmd Support 2
M Unexpected Results from Doing Numeric Comparisons... Support 17
daniel347x Different results with TCC than with cmd.exe Support 2
vefatica @SERVICE, unexpected results Support 6
vefatica Strange results with CP 1252 Support 12
dcantor LIST /X and TYPE /X give different results Support 20
T Concatenate echoed text with the results of a grep command? Support 2
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
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
C Screens of different size and hidden console Support 8
Stefano Piccardi TCC 13 vs. TCC 14 different FFIND /E"d$" output Support 1
davidebbo Installing to a different machine Support 27
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
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

Similar threads