Introducing Windows Terminal app for Windows 10

Page 2 of 2 FirstFirst 12

  1. Posts : 7,904
    Windows 11 Pro 64 bit
       #10

    Cliff S said:
    Then you shouldn't be using an User account, anyhow.
    There is a reason for the differences between admin & user accounts.
    What's wrong with running a quick check on something from an admin command prompt in a user account rather than faffing about switching accounts?
      My Computers


  2. Posts : 27,183
    Win11 Pro, Win10 Pro N, Win10 Home, Windows 8.1 Pro, Ubuntu
       #11

    By the way, anyone else been personalizing their Terminal UI's?
    Introducing Windows Terminal app for Windows 10-image.jpg

    Introducing Windows Terminal app for Windows 10-image.jpg
      My Computers


  3. Posts : 17,661
    Windows 10 Pro
       #12

    Cliff S said:
    By the way, anyone else been personalizing their Terminal UI's?
    Introducing Windows Terminal app for Windows 10-image.png
      My Computer


  4. Posts : 3,453
       #13

    Regarding this Release Color Tool April 2019 . microsoft/terminal . GitHub

    It does support the non-Store version colour changes but not background images ...the .json file does not get recognised and
    I can't get a background image onto the non-store version of CMD or PS.... pity!
      My Computer


  5. Posts : 68,935
    64-bit Windows 11 Pro for Workstations
    Thread Starter
       #14
      My Computers


  6. Posts : 17,661
    Windows 10 Pro
       #15

    Superfly said:
    I can't get a background image onto the non-store version of CMD or PS.... pity!
    I am not saying this is your issue, but just wanted to give a tip for those not getting background images to work.

    A JSON file reads paths as Uniform resource Identifiers (URI).

    One significant difference between a path and a URI is that you can't use backward slashes (\) in URI. A typical Windows path to a file:

    C:\Users\Pictures\MyBackground.png

    … and the same using URI instead of path:

    C:/Users/Pictures/MyBackGround.png

    Here's the PowerShell profile from my Windows Terminal settings, the background image line using URI highlighted:

    Code:
            {
                "acrylicOpacity" : 0.5,
                "background" : "#012456",
                "backgroundImage" : "E:/Users/Kari/OneDrive/Backgrounds/PS_Background.jpg",
                "backgroundImageOpacity" : 0.5,
                "backgroundImageStretchMode" : "uniformToFill",
                "closeOnExit" : true,
                "colorScheme" : "Campbell",
                "commandline" : "powershell.exe",
                "cursorColor" : "#FFFFFF",
                "cursorShape" : "bar",
                "fontFace" : "Lucida Console",
                "fontSize" : 12,
                "guid" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "historySize" : 9001,
                "icon" : "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
                "name" : "Windows PowerShell",
                "padding" : "0, 0, 0, 0",
                "snapOnInput" : true,
                "startingDirectory" : "%USERPROFILE%",
                "useAcrylic" : false
            },

    This works:

    Introducing Windows Terminal app for Windows 10-image.png

    However, if I change that background image line to normal path statement using backslashes, it won't work:

    Code:
            {
                "acrylicOpacity" : 0.5,
                "background" : "#012456",
                "backgroundImage" : "E:\Users\Kari\OneDrive\Backgrounds\PS_Background.jpg",
                "backgroundImageOpacity" : 0.5,
                "backgroundImageStretchMode" : "uniformToFill",
                "closeOnExit" : true,
                "colorScheme" : "Campbell",
                "commandline" : "powershell.exe",
                "cursorColor" : "#FFFFFF",
                "cursorShape" : "bar",
                "fontFace" : "Lucida Console",
                "fontSize" : 12,
                "guid" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "historySize" : 9001,
                "icon" : "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
                "name" : "Windows PowerShell",
                "padding" : "0, 0, 0, 0",
                "snapOnInput" : true,
                "startingDirectory" : "%USERPROFILE%",
                "useAcrylic" : false
            },

    Now, image URI is wrong, and background would not be applied:

    Introducing Windows Terminal app for Windows 10-image.png

    Short: In Windows Terminal settings file profiles.json, replace each and every backslash (\) with a forward slash (/).

    Kari
      My Computer


  7. Posts : 3,453
       #16

    Kari said:
    I am not saying this is your issue, but just wanted to give a tip for those not getting background images to work.

    A JSON file reads paths as Uniform resource Identifiers (URI).

    One significant difference between a path and a URI is that you can't use backward slashes (\) in URI. A typical Windows path to a file:

    C:\Users\Pictures\MyBackground.png

    … and the same using URI instead of path:

    C:/Users/Pictures/MyBackGround.png

    Here's the PowerShell profile from my Windows Terminal settings, the background image line using URI highlighted:

    Code:
            {
                "acrylicOpacity" : 0.5,
                "background" : "#012456",
                "backgroundImage" : "E:/Users/Kari/OneDrive/Backgrounds/PS_Background.jpg",
                "backgroundImageOpacity" : 0.5,
                "backgroundImageStretchMode" : "uniformToFill",
                "closeOnExit" : true,
                "colorScheme" : "Campbell",
                "commandline" : "powershell.exe",
                "cursorColor" : "#FFFFFF",
                "cursorShape" : "bar",
                "fontFace" : "Lucida Console",
                "fontSize" : 12,
                "guid" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "historySize" : 9001,
                "icon" : "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
                "name" : "Windows PowerShell",
                "padding" : "0, 0, 0, 0",
                "snapOnInput" : true,
                "startingDirectory" : "%USERPROFILE%",
                "useAcrylic" : false
            },

    This works:

    Introducing Windows Terminal app for Windows 10-image.png

    However, if I change that background image line to normal path statement using backslashes, it won't work:

    Code:
            {
                "acrylicOpacity" : 0.5,
                "background" : "#012456",
                "backgroundImage" : "E:\Users\Kari\OneDrive\Backgrounds\PS_Background.jpg",
                "backgroundImageOpacity" : 0.5,
                "backgroundImageStretchMode" : "uniformToFill",
                "closeOnExit" : true,
                "colorScheme" : "Campbell",
                "commandline" : "powershell.exe",
                "cursorColor" : "#FFFFFF",
                "cursorShape" : "bar",
                "fontFace" : "Lucida Console",
                "fontSize" : 12,
                "guid" : "{61c54bbd-c2c6-5271-96e7-009a87ff44bf}",
                "historySize" : 9001,
                "icon" : "ms-appx:///ProfileIcons/{61c54bbd-c2c6-5271-96e7-009a87ff44bf}.png",
                "name" : "Windows PowerShell",
                "padding" : "0, 0, 0, 0",
                "snapOnInput" : true,
                "startingDirectory" : "%USERPROFILE%",
                "useAcrylic" : false
            },

    Now, image URI is wrong, and background would not be applied:

    Introducing Windows Terminal app for Windows 10-image.png

    Short: In Windows Terminal settings file profiles.json, replace each and every backslash (\) with a forward slash (/).

    Kari
    Thanx @Kari - still checking the source to see if it can work on non-store - an export functon to json is in development so we'll see.
      My Computer


  8. Posts : 1
    Windows 10
       #17

    Hello guys! I'm new to this forum. One question regarding the Windows Terminal is how I can make cmd in Windows Terminal run everytime as administrator?
      My Computer


  9. Posts : 7,904
    Windows 11 Pro 64 bit
       #18

    roberto98 said:
    Hello guys! I'm new to this forum. One question regarding the Windows Terminal is how I can make cmd in Windows Terminal run everytime as administrator?
    I asked a similar question in post 6. It seems you have to choose the admin option every time you run the app.
      My Computers


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 22:03.
Find Us




Windows 10 Forums