Start a new topic
Answered

Rebex xterm 256 color mode

Hi. I have seen Rebex supports at least xterm 256 color mode, but it seems only 16 color mode is available in RoyalTS. Ref:


https://www.rebex.net/terminal-emulation.net/features/terminal-emulation.aspx#settings


I can surely use putty instead, but I really like the performance of that direct mode aswell. Can you add an option to activate 256 color?


Best Answer

Hi Rune,


I'm not sure what you mean. You can only define the 16 base ANSI colors but the terminal can render the full 256 color palette:

You can try it yourself:

for i in {0..255} ; do
    printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i"
    if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then
        printf "\n";
    fi
done



Answer

Hi Rune,


I'm not sure what you mean. You can only define the 16 base ANSI colors but the terminal can render the full 256 color palette:

You can try it yourself:

for i in {0..255} ; do
    printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i"
    if (( i == 15 )) || (( i > 15 )) && (( (i-15) % 6 == 0 )); then
        printf "\n";
    fi
done


You have absolutely right. It was btop that use truecolor as default that fooled me. :)

image


Login or Signup to post a comment