Command line Fails. I upgraded to last version and since then I had this issue in spite of downgrading. #16767

Closed
opened 2026-01-31 05:22:15 +00:00 by claunia · 7 comments
Owner

Originally created by @DanielPython2021 on GitHub (Feb 13, 2022).

Windows Terminal version

1.13.10395.0

Windows build number

19043.1526

Other Software

No response

Steps to reproduce

If I open a new instance in a new window, that instance is according to the configuration (cmd in my case), with the proper font size, etc. If I run from python a command line opening multiple cmd tabs each one with command line, title, color, ... (this was working) it now opens all the tabs, with all configurations (profiles, colors, etc.) BUT the font size is wrong (I use smaller case and seems to open the default font size value 12 instead of my configured 10) AND colorScheme is also wrong (perhaps Campbell instead of my configured half dark).

Expected Behavior

see Steps to reproduce

Actual Behavior

see Steps to reproduce

Originally created by @DanielPython2021 on GitHub (Feb 13, 2022). ### Windows Terminal version 1.13.10395.0 ### Windows build number 19043.1526 ### Other Software _No response_ ### Steps to reproduce If I open a new instance in a new window, that instance is according to the configuration (cmd in my case), with the proper font size, etc. If I run from python a command line opening multiple cmd tabs each one with command line, title, color, ... (this was working) it now opens all the tabs, with all configurations (profiles, colors, etc.) BUT the font size is wrong (I use smaller case and seems to open the default font size value 12 instead of my configured 10) AND colorScheme is also wrong (perhaps Campbell instead of my configured half dark). ### Expected Behavior see Steps to reproduce ### Actual Behavior see Steps to reproduce
Author
Owner

@zadjii-msft commented on GitHub (Feb 14, 2022):

Could you share your settings.json file?

I suspect this is just "the terminal is using profiles.defaults now instead of the default profile" (#12311, #11836 et al), but I want to make sure.

@zadjii-msft commented on GitHub (Feb 14, 2022): Could you share your [settings.json file](https://github.com/microsoft/terminal/wiki/Frequently-Asked-Questions-(FAQ)#where-can-i-find-the-settings-file)? I suspect this is just "the terminal is using `profiles.defaults` now instead of the default profile" (#12311, #11836 et al), but I want to make sure.
Author
Owner

@DanielPython2021 commented on GitHub (Feb 15, 2022):

This is a new one since I tried from the configuration of window repair and
restart. Changes are only: font size, buffer size, initial folder, scheme
and behavior of closing procedure.
But what opens with the wrong configuration is the following command:
This worked in the previous version and now does not (instead I downgraded
wt). Actually I am using pyautogui that opens on by one the tabs (shown in
the command below), writes the title, configures the color (mimiking human
typing).
windows_realtime_cmd = 'powershell.exe wt -M --% nt -d t:/pyprogramas -p
cmd --title motion --tabColor #429ef5 python Motion_Rev7_no_append.py ; nt
-d t:/pyprogramas -p cmd --title trend_ema --tabColor #41ffff python
trend_ema_no_append_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title
monitor --tabColor #8aff41 python 0_system_monitor_rev01.py ; nt -d
t:/pyprogramas -p cmd --title findeldia --tabColor #dd00ff python
findeldia.py ; nt -d t:/pyprogramas -p cmd --title o60ma --tabColor #ed5b1c
python equity_signals_corridas_o60ma_shared_mem.py ; nt -d t:/pyprogramas
-p cmd --title over21cnt --tabColor #1cedd8 python
equity_signals_corridas_ver12_shared_mem.py ; nt -d t:/pyprogramas -p cmd
--title ancho_cnt --tabColor #e8ab10 python
equity_signals_corridas_ver1_shared_mem.py ; nt -d t:/pyprogramas -p cmd
--title ancho --tabColor #cf4dff python
equity_signals_corridas_ver8_shared_mem.py ; nt -d t:/pyprogramas -p cmd
--title pend_9 --tabColor #d145be python
equity_signals_corridas_ver4_shared_mem.py ; nt -d t:/pyprogramas -p cmd
--title pend_30 --tabColor #871c4a python
equity_signals_corridas_ver6_shared_mem.py ; nt -d t:/pyprogramas -p cmd
--title high_pVW --tabColor #6434c8 python
equity_signals_corridas_ver2_shared_mem.py ; nt -d t:/pyprogramas -p cmd
--title ver6_o60ma_acum --tabColor #23d9c0 python
equity_signals_corridas_ver6_o60ma_ac_shared_mem.py ; nt -d t:/pyprogramas
-p cmd --title watchdog_001 --tabColor #7ed923 python watchdog_001.py'

@DanielPython2021 commented on GitHub (Feb 15, 2022): This is a new one since I tried from the configuration of window repair and restart. Changes are only: font size, buffer size, initial folder, scheme and behavior of closing procedure. But what opens with the wrong configuration is the following command: This worked in the previous version and now does not (instead I downgraded wt). Actually I am using pyautogui that opens on by one the tabs (shown in the command below), writes the title, configures the color (mimiking human typing). windows_realtime_cmd = 'powershell.exe wt -M --% nt -d t:/pyprogramas -p cmd --title motion --tabColor #429ef5 python Motion_Rev7_no_append.py ; nt -d t:/pyprogramas -p cmd --title trend_ema --tabColor #41ffff python trend_ema_no_append_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title monitor --tabColor #8aff41 python 0_system_monitor_rev01.py ; nt -d t:/pyprogramas -p cmd --title findeldia --tabColor #dd00ff python findeldia.py ; nt -d t:/pyprogramas -p cmd --title o60ma --tabColor #ed5b1c python equity_signals_corridas_o60ma_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title over21cnt --tabColor #1cedd8 python equity_signals_corridas_ver12_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title ancho_cnt --tabColor #e8ab10 python equity_signals_corridas_ver1_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title ancho --tabColor #cf4dff python equity_signals_corridas_ver8_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title pend_9 --tabColor #d145be python equity_signals_corridas_ver4_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title pend_30 --tabColor #871c4a python equity_signals_corridas_ver6_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title high_pVW --tabColor #6434c8 python equity_signals_corridas_ver2_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title ver6_o60ma_acum --tabColor #23d9c0 python equity_signals_corridas_ver6_o60ma_ac_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title watchdog_001 --tabColor #7ed923 python watchdog_001.py'
Author
Owner

@DanielPython2021 commented on GitHub (Feb 15, 2022):

El mar, 15 feb 2022 a las 20:16, Daniel Futterweit @.***>)
escribió:

This is a new one since I tried from the configuration of window repair
and restart. Changes are only: font size, buffer size, initial folder,
scheme and behavior of closing procedure.
But what opens with the wrong configuration is the following command:
This worked in the previous version and now does not (instead I downgraded
wt). Actually I am using pyautogui that opens on by one the tabs (shown in
the command below), writes the title, configures the color (mimiking human
typing).
windows_realtime_cmd = 'powershell.exe wt -M --% nt -d t:/pyprogramas -p
cmd --title motion --tabColor #429ef5 python Motion_Rev7_no_append.py ; nt
-d t:/pyprogramas -p cmd --title trend_ema --tabColor #41ffff python
trend_ema_no_append_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title
monitor --tabColor #8aff41 python 0_system_monitor_rev01.py ; nt -d
t:/pyprogramas -p cmd --title findeldia --tabColor #dd00ff python
findeldia.py ; nt -d t:/pyprogramas -p cmd --title o60ma --tabColor #ed5b1c
python equity_signals_corridas_o60ma_shared_mem.py ; nt -d t:/pyprogramas
-p cmd --title over21cnt --tabColor #1cedd8 python
equity_signals_corridas_ver12_shared_mem.py ; nt -d t:/pyprogramas -p cmd
--title ancho_cnt --tabColor #e8ab10 python
equity_signals_corridas_ver1_shared_mem.py ; nt -d t:/pyprogramas -p cmd
--title ancho --tabColor #cf4dff python
equity_signals_corridas_ver8_shared_mem.py ; nt -d t:/pyprogramas -p cmd
--title pend_9 --tabColor #d145be python
equity_signals_corridas_ver4_shared_mem.py ; nt -d t:/pyprogramas -p cmd
--title pend_30 --tabColor #871c4a python
equity_signals_corridas_ver6_shared_mem.py ; nt -d t:/pyprogramas -p cmd
--title high_pVW --tabColor #6434c8 python
equity_signals_corridas_ver2_shared_mem.py ; nt -d t:/pyprogramas -p cmd
--title ver6_o60ma_acum --tabColor #23d9c0 python
equity_signals_corridas_ver6_o60ma_ac_shared_mem.py ; nt -d t:/pyprogramas
-p cmd --title watchdog_001 --tabColor #7ed923 python watchdog_001.py'

El lun, 14 feb 2022 a las 9:54, Mike Griese @.***>)
escribió:

Could you share your settings.json file
https://github.com/microsoft/terminal/wiki/Frequently-Asked-Questions-(FAQ)#where-can-i-find-the-settings-file
?

I suspect this is just "the terminal is using profiles.defaults now
instead of the default profile" (#12311
https://github.com/microsoft/terminal/issues/12311, #11836
https://github.com/microsoft/terminal/issues/11836 et al), but I want
to make sure.


Reply to this email directly, view it on GitHub
https://github.com/microsoft/terminal/issues/12483#issuecomment-1039010021,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AT2XGAGBO2ABGVJVS6OT6RLU3DWCXANCNFSM5OJO2NQQ
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID:
@.***>

@DanielPython2021 commented on GitHub (Feb 15, 2022): El mar, 15 feb 2022 a las 20:16, Daniel Futterweit ***@***.***>) escribió: > This is a new one since I tried from the configuration of window repair > and restart. Changes are only: font size, buffer size, initial folder, > scheme and behavior of closing procedure. > But what opens with the wrong configuration is the following command: > This worked in the previous version and now does not (instead I downgraded > wt). Actually I am using pyautogui that opens on by one the tabs (shown in > the command below), writes the title, configures the color (mimiking human > typing). > windows_realtime_cmd = 'powershell.exe wt -M --% nt -d t:/pyprogramas -p > cmd --title motion --tabColor #429ef5 python Motion_Rev7_no_append.py ; nt > -d t:/pyprogramas -p cmd --title trend_ema --tabColor #41ffff python > trend_ema_no_append_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title > monitor --tabColor #8aff41 python 0_system_monitor_rev01.py ; nt -d > t:/pyprogramas -p cmd --title findeldia --tabColor #dd00ff python > findeldia.py ; nt -d t:/pyprogramas -p cmd --title o60ma --tabColor #ed5b1c > python equity_signals_corridas_o60ma_shared_mem.py ; nt -d t:/pyprogramas > -p cmd --title over21cnt --tabColor #1cedd8 python > equity_signals_corridas_ver12_shared_mem.py ; nt -d t:/pyprogramas -p cmd > --title ancho_cnt --tabColor #e8ab10 python > equity_signals_corridas_ver1_shared_mem.py ; nt -d t:/pyprogramas -p cmd > --title ancho --tabColor #cf4dff python > equity_signals_corridas_ver8_shared_mem.py ; nt -d t:/pyprogramas -p cmd > --title pend_9 --tabColor #d145be python > equity_signals_corridas_ver4_shared_mem.py ; nt -d t:/pyprogramas -p cmd > --title pend_30 --tabColor #871c4a python > equity_signals_corridas_ver6_shared_mem.py ; nt -d t:/pyprogramas -p cmd > --title high_pVW --tabColor #6434c8 python > equity_signals_corridas_ver2_shared_mem.py ; nt -d t:/pyprogramas -p cmd > --title ver6_o60ma_acum --tabColor #23d9c0 python > equity_signals_corridas_ver6_o60ma_ac_shared_mem.py ; nt -d t:/pyprogramas > -p cmd --title watchdog_001 --tabColor #7ed923 python watchdog_001.py' > > El lun, 14 feb 2022 a las 9:54, Mike Griese ***@***.***>) > escribió: > >> Could you share your settings.json file >> <https://github.com/microsoft/terminal/wiki/Frequently-Asked-Questions-(FAQ)#where-can-i-find-the-settings-file> >> ? >> >> I suspect this is just "the terminal is using profiles.defaults now >> instead of the default profile" (#12311 >> <https://github.com/microsoft/terminal/issues/12311>, #11836 >> <https://github.com/microsoft/terminal/issues/11836> et al), but I want >> to make sure. >> >> — >> Reply to this email directly, view it on GitHub >> <https://github.com/microsoft/terminal/issues/12483#issuecomment-1039010021>, >> or unsubscribe >> <https://github.com/notifications/unsubscribe-auth/AT2XGAGBO2ABGVJVS6OT6RLU3DWCXANCNFSM5OJO2NQQ> >> . >> Triage notifications on the go with GitHub Mobile for iOS >> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> >> or Android >> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>. >> >> You are receiving this because you authored the thread.Message ID: >> ***@***.***> >> >
Author
Owner

@DanielPython2021 commented on GitHub (Feb 17, 2022):

I thought I had sent the json file but I do not see it in my answers. So
here it is. I have also changed the font size in the wt cmd and tried again
with power shell and it opens with the same previous size font (smaller
than 24). I think it is 12 instead of my configured font size of 10.
Also I forgot to comment that the first time I ran wt after upgrading it
could not find Cascadia Mono so it replaced it. But that was the only time
it did and now I think it found Cascadia Mono.

@DanielPython2021 commented on GitHub (Feb 17, 2022): I thought I had sent the json file but I do not see it in my answers. So here it is. I have also changed the font size in the wt cmd and tried again with power shell and it opens with the same previous size font (smaller than 24). I think it is 12 instead of my configured font size of 10. Also I forgot to comment that the first time I ran wt after upgrading it could not find Cascadia Mono so it replaced it. But that was the only time it did and now I think it found Cascadia Mono.
Author
Owner

@DanielPython2021 commented on GitHub (Mar 28, 2022):

FYI: I could solve the problem I reported. The trick is as follows. If I
use the profile cmd (-p cmd) as in the examples in internet I get the
error as reported (although this was working in previous versions). I
really do not understand how you link "cmd" with the profile, so I tried (-p
{0caa0dad-35be-5f56-a8ff-afceeeaa6101}
) and worked. Also I used both
profiles in different tabs and the open different profiles. cmd opens the
default.json profile and {0caa0dad-35be-5f56-a8ff-afceeeaa6101} opens the
settings.json (my customized cmd). Also the profile in spanish have
different (Microsoft names) names in defaults (Command Prompt) and settings
(S\u00edmbolo del sistema).
I hope this info leads you to the bug.

@DanielPython2021 commented on GitHub (Mar 28, 2022): *FYI*: I could solve the problem I reported. The trick is as follows. If I use the profile cmd (*-p cmd*) as in the examples in internet I get the error as reported (although this was working in previous versions). I really do not understand how you link "cmd" with the profile, so I tried (*-p {0caa0dad-35be-5f56-a8ff-afceeeaa6101}*) and worked. Also I used both profiles in different tabs and the open different profiles. cmd opens the default.json profile and {0caa0dad-35be-5f56-a8ff-afceeeaa6101} opens the settings.json (my customized cmd). Also the profile in spanish have different (Microsoft names) names in defaults (Command Prompt) and settings (S\u00edmbolo del sistema). I hope this info leads you to the bug.
Author
Owner

@zadjii-msft commented on GitHub (Mar 28, 2022):

FWIW, if you're replying via email, I don't think attachments get uploaded to github automatically. You'll likely have to either copy-paste into the body of the email, or reply directly on github 😉

@zadjii-msft commented on GitHub (Mar 28, 2022): FWIW, if you're replying via email, I don't think attachments get uploaded to github automatically. You'll likely have to either copy-paste into the body of the email, or reply directly on github 😉
Author
Owner

@zadjii-msft commented on GitHub (Jul 5, 2022):

for reference:

windows_realtime_cmd = 'powershell.exe wt -M --% nt -d t:/pyprogramas -p cmd --title motion --tabColor #429ef5 python Motion_Rev7_no_append.py ;
                                                 nt -d t:/pyprogramas -p cmd --title trend_ema --tabColor #41ffff python trend_ema_no_append_shared_mem.py ;
                                                 nt -d t:/pyprogramas -p cmd --title monitor --tabColor #8aff41 python 0_system_monitor_rev01.py ;
                                                 nt -d t:/pyprogramas -p cmd --title findeldia --tabColor #dd00ff python findeldia.py ;
                                                 nt -d t:/pyprogramas -p cmd --title o60ma --tabColor #ed5b1c python equity_signals_corridas_o60ma_shared_mem.py ;
                                                 nt -d t:/pyprogramas -p cmd --title over21cnt --tabColor #1cedd8 python equity_signals_corridas_ver12_shared_mem.py ;
                                                 nt -d t:/pyprogramas -p cmd --title ancho_cnt --tabColor #e8ab10 python equity_signals_corridas_ver1_shared_mem.py ;
                                                 nt -d t:/pyprogramas -p cmd --title ancho --tabColor #cf4dff python equity_signals_corridas_ver8_shared_mem.py ;
                                                 nt -d t:/pyprogramas -p cmd --title pend_9 --tabColor #d145be python equity_signals_corridas_ver4_shared_mem.py ;
                                                 nt -d t:/pyprogramas -p cmd --title pend_30 --tabColor #871c4a python equity_signals_corridas_ver6_shared_mem.py ;
                                                 nt -d t:/pyprogramas -p cmd --title high_pVW --tabColor #6434c8 python equity_signals_corridas_ver2_shared_mem.py ;
                                                 nt -d t:/pyprogramas -p cmd --title ver6_o60ma_acum --tabColor #23d9c0 python equity_signals_corridas_ver6_o60ma_ac_shared_mem.py ;
                                                 nt -d t:/pyprogramas -p cmd --title watchdog_001 --tabColor #7ed923 python watchdog_001.py'

but after re-reading this, it sounds like the issue here is just that you were using cmd as the profile name, instead of {whatever it actually is in Spanish}. The -p param accepts either the guid of a profile, or the exact name.

Around the time this was filed, we also slightly changed the behavior here. Before, if the profile specified in -p wasn't found, we'd default to the defaultProfile. Now, we default to the settings in profiles.defaults. I suspect this just so happened to work before, when we'd fall back to your default profile (CMD).

@zadjii-msft commented on GitHub (Jul 5, 2022): for reference: ``` windows_realtime_cmd = 'powershell.exe wt -M --% nt -d t:/pyprogramas -p cmd --title motion --tabColor #429ef5 python Motion_Rev7_no_append.py ; nt -d t:/pyprogramas -p cmd --title trend_ema --tabColor #41ffff python trend_ema_no_append_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title monitor --tabColor #8aff41 python 0_system_monitor_rev01.py ; nt -d t:/pyprogramas -p cmd --title findeldia --tabColor #dd00ff python findeldia.py ; nt -d t:/pyprogramas -p cmd --title o60ma --tabColor #ed5b1c python equity_signals_corridas_o60ma_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title over21cnt --tabColor #1cedd8 python equity_signals_corridas_ver12_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title ancho_cnt --tabColor #e8ab10 python equity_signals_corridas_ver1_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title ancho --tabColor #cf4dff python equity_signals_corridas_ver8_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title pend_9 --tabColor #d145be python equity_signals_corridas_ver4_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title pend_30 --tabColor #871c4a python equity_signals_corridas_ver6_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title high_pVW --tabColor #6434c8 python equity_signals_corridas_ver2_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title ver6_o60ma_acum --tabColor #23d9c0 python equity_signals_corridas_ver6_o60ma_ac_shared_mem.py ; nt -d t:/pyprogramas -p cmd --title watchdog_001 --tabColor #7ed923 python watchdog_001.py' ``` but after re-reading this, it sounds like the issue here is just that you were using `cmd` as the profile name, instead of {whatever it actually is in Spanish}. The `-p` param accepts either the guid of a profile, or the exact name. Around the time this was filed, we also slightly changed the behavior here. Before, if the profile specified in `-p` wasn't found, we'd default to the `defaultProfile`. Now, we default to the settings in `profiles.defaults`. I suspect this just so happened to work before, when we'd fall back to your default profile (CMD).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16767