Skip to main content

everything is well, but the vscode's terminal rendering is incorrect, is this a bug or my setting is not right

Status: Completed1 comment

Log in to comment and vote

Comments1

  • vira

    Team•

    Jan 14

    Hello there. Yes, your terminal is using a different theme. Run this code in your terminal and check if the colours match the following.  Alternatively, if you’ve edited the theme using the custom CSS extension it could be another cause. This bypasses VS Code’s theming API and can lead to other issues.

    #!/bin/bash
    
    clear
    colors=(31 32 33 34 35 36 91 92 93 94 95 96) 
    
    rows=2
    cols=14
    
    for ((r = 0; r < rows; r++)); do
    for ((c = 0; c < cols; c++)); do
    
    color=${colors[$((RANDOM % ${#colors[@]}))]}
    
    printf "\e[1;%sm█\e[0m " "$color"
    done
    
    echo
    done