Can't enable 256 colors in ConEmu

前端 未结 4 1635
清歌不尽
清歌不尽 2021-01-30 23:21

I\'m trying to get 256 colors in the fantastic ConEmu-Maximus5 console.

Update: Now it only shows 8 colors. I know because \'$tput colors\' output is \'

4条回答
  •  不知归路
    2021-01-31 00:06

    I had this weird problem and the weird solution and somehow it works. and don't know if this is with others too, just some info-sharing in case this shall be helpful.

    I like colouring my consoles and like to utilize the full real 256 bits of RGB colouring. After confuguring as in the conemu/CMDer (i used the forked one) instruction. my 256bit coloring test looked like this.. After mucking around a bit and testing with my bash 256bit capability. i.e running this command:

    for i in {1..16384}; do echo -en "\e[38;5;${i}mTest";done
    

    *note supposed to be {1..256}, but i had to force it for a longer colour prints, so just took a longer random number.. giving the result:

    But running some 2-3 times, i saw this clean gray shade suddenly

    and it worked then on..

    weird but i got this working. Could it be that CMDer is somehow not using the full 256 bit because of optimizing reason and it get triggered when it is kicked in??,

    PS: my CMDer cmd for the console:

    -cur_console:fp -cur_console:d:"C:\WS":P:"":t:"test":C:"C:\Arbeit\tools\Iconka-Buddy-Ninja.ico" set "PATH=%ConEmuDrive%\Program Files\Git\usr\bin;%PATH%" & "%ConEmuDrive%\Program Files\Git\git-bash.exe" --no-cd --command=%ConEmuBaseDirShort%\conemu-msys2-64.exe /usr/bin/bash.exe -l -i
    

提交回复
热议问题